Fix flaky color palette picker e2e test (#48496)

* Fix flaky test by repositioning save button

* Add changelog
This commit is contained in:
Veljko V 2024-06-14 13:30:42 +02:00 committed by GitHub
parent dada673fac
commit 83ff0ecb12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
E2E tests: fixing flaky color palette picker test

View File

@ -308,10 +308,6 @@ test.describe( 'Assembler -> Color Pickers', () => {
response.status() === 200 response.status() === 200
); );
await saveButton.click();
await waitResponse;
const buttons = await editor const buttons = await editor
.locator( '.wp-block-button > .wp-block-button__link' ) .locator( '.wp-block-button > .wp-block-button__link' )
.evaluateAll( ( elements ) => .evaluateAll( ( elements ) =>
@ -392,6 +388,10 @@ test.describe( 'Assembler -> Color Pickers', () => {
for ( const element of headersInCoverBlock ) { for ( const element of headersInCoverBlock ) {
expect( element.color ).toEqual( 'rgb(255, 255, 255)' ); expect( element.color ).toEqual( 'rgb(255, 255, 255)' );
} }
await saveButton.click();
await waitResponse;
} ); } );
} }