[e2e tests] External sites - update products/add-variable-product folder (#50942)
* Include add-variable-product/**/*.spec.js for Pressable env * Use unique identifier for the Update button * Add changefile(s) from automation for the following project(s): woocommerce * Add changefile(s) from automation for the following project(s): woocommerce * Remove @local tag * Use getBy* instead of locator * Use `locator( '#publishing-action' )` * Fix lint issues --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
parent
e13febddac
commit
dd79e4bf97
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: update
|
||||||
|
|
||||||
|
Update `add-variable-product` e2e tests, so they are passing against Pressable env.
|
|
@ -9,6 +9,7 @@ config = {
|
||||||
use: { ...devices[ 'Desktop Chrome' ] },
|
use: { ...devices[ 'Desktop Chrome' ] },
|
||||||
testMatch: [
|
testMatch: [
|
||||||
'**/basic.spec.js',
|
'**/basic.spec.js',
|
||||||
|
'**/merchant/products/add-variable-product/**/*.spec.js',
|
||||||
'**/activate-and-setup/**/*.spec.js',
|
'**/activate-and-setup/**/*.spec.js',
|
||||||
'**/merchant/products/block-editor/**/*.spec.js',
|
'**/merchant/products/block-editor/**/*.spec.js',
|
||||||
],
|
],
|
||||||
|
|
|
@ -133,7 +133,10 @@ test.describe( 'Add product attributes', { tag: '@gutenberg' }, () => {
|
||||||
'options=woocommerce_task_list_reminder_bar_hidden'
|
'options=woocommerce_task_list_reminder_bar_hidden'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
await page.getByRole( 'button', { name: 'Update' } ).click();
|
await page
|
||||||
|
.locator( '#publishing-action' )
|
||||||
|
.getByRole( 'button', { name: 'Update' } )
|
||||||
|
.click();
|
||||||
|
|
||||||
const response = await finalRequestResolution;
|
const response = await finalRequestResolution;
|
||||||
expect( response.ok() ).toBeTruthy();
|
expect( response.ok() ).toBeTruthy();
|
||||||
|
|
Loading…
Reference in New Issue