[e2e tests] External sites - update products/block-editor folder (#50960)
* Include products/block-editor into default-pressable set of tests * Wait for `Block: Product attributes` before proceeding * Add changefile(s) from automation for the following project(s): woocommerce * Put comment on why to wait for the element * Fix issue caught by Lint - @woocommerce/plugin-woocommerce * Fix linting error --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
parent
7d8cd500b5
commit
1364adb690
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: update
|
||||
|
||||
Update `products/block-editor` e2e tests, so they are passing against Pressable env.
|
|
@ -10,6 +10,7 @@ config = {
|
|||
testMatch: [
|
||||
'**/basic.spec.js',
|
||||
'**/activate-and-setup/**/*.spec.js',
|
||||
'**/merchant/products/block-editor/**/*.spec.js',
|
||||
],
|
||||
grepInvert: /@skip-on-default-pressable/,
|
||||
},
|
||||
|
|
|
@ -373,6 +373,13 @@ test(
|
|||
await expect(
|
||||
async () => {
|
||||
await page.reload();
|
||||
// Waiting for the "Block: Product attributes" will ensure
|
||||
// that test will pass against the Pressable environment
|
||||
await expect(
|
||||
page.locator(
|
||||
`[aria-label="Block: Product attributes"]`
|
||||
)
|
||||
).toBeVisible();
|
||||
await page.getByRole( 'button', { name: 'Edit' } ).click();
|
||||
await expect(
|
||||
page.locator(
|
||||
|
|
Loading…
Reference in New Issue