E2E: remove UI check when creating attribute global terms (#48934)

* do not wait for the `is-validating` state

* changelog

* not only this test
This commit is contained in:
Damián Suárez 2024-07-01 16:49:51 +01:00 committed by GitHub
parent f85a7ba3d4
commit 603e774188
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 14 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: update
E2E: remove UI check when creating attribute global terms

View File

@ -163,17 +163,6 @@ test.describe( 'Variations tab', { tag: '@gutenberg' }, () => {
term.name
);
/*
* Check the option being added to the list,
* by checking the token with validating state.
*/
const newValidatingTokenLocator =
FormTokenFieldLocator.locator( '.is-validating' );
await newValidatingTokenLocator.waitFor( {
state: 'visible',
} );
/*
* Wait for the async POST request
* that creates the new attribute term to finish.
@ -190,9 +179,6 @@ test.describe( 'Variations tab', { tag: '@gutenberg' }, () => {
} );
}
// Wait for the last term to be validated/added
await expect( page.locator( '.is-validating' ) ).toBeHidden();
await page
.locator( '.woocommerce-new-attribute-modal__buttons' )
.getByRole( 'button', {