Fix flaky color palette picker e2e test (#48496)
* Fix flaky test by repositioning save button * Add changelog
This commit is contained in:
parent
dada673fac
commit
83ff0ecb12
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: dev
|
||||
|
||||
E2E tests: fixing flaky color palette picker test
|
|
@ -308,10 +308,6 @@ test.describe( 'Assembler -> Color Pickers', () => {
|
|||
response.status() === 200
|
||||
);
|
||||
|
||||
await saveButton.click();
|
||||
|
||||
await waitResponse;
|
||||
|
||||
const buttons = await editor
|
||||
.locator( '.wp-block-button > .wp-block-button__link' )
|
||||
.evaluateAll( ( elements ) =>
|
||||
|
@ -392,6 +388,10 @@ test.describe( 'Assembler -> Color Pickers', () => {
|
|||
for ( const element of headersInCoverBlock ) {
|
||||
expect( element.color ).toEqual( 'rgb(255, 255, 255)' );
|
||||
}
|
||||
|
||||
await saveButton.click();
|
||||
|
||||
await waitResponse;
|
||||
} );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue