[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:
Ivan Stojadinov 2024-08-27 18:01:41 +02:00 committed by GitHub
parent e13febddac
commit dd79e4bf97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: update
Update `add-variable-product` e2e tests, so they are passing against Pressable env.

View File

@ -9,6 +9,7 @@ config = {
use: { ...devices[ 'Desktop Chrome' ] },
testMatch: [
'**/basic.spec.js',
'**/merchant/products/add-variable-product/**/*.spec.js',
'**/activate-and-setup/**/*.spec.js',
'**/merchant/products/block-editor/**/*.spec.js',
],

View File

@ -133,7 +133,10 @@ test.describe( 'Add product attributes', { tag: '@gutenberg' }, () => {
'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;
expect( response.ok() ).toBeTruthy();