Skip to content

Commit

Permalink
Switch to waiting for image instead of the image resize buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Davies committed Nov 30, 2021
1 parent 2a25bec commit 99a0696
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/e2e-tests/specs/editor/blocks/image.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ describe( 'Image', () => {
expect( await getEditedPostContent() ).toMatch( regex1 );

await openDocumentSettingsSidebar();
await page.waitForSelector(
'[aria-label="Image size presets"] button:first-child',
{ visible: true }
);
await page.click( '[aria-label="Image size presets"] button' );

const regex2 = new RegExp(
Expand Down Expand Up @@ -318,13 +314,9 @@ describe( 'Image', () => {

// Upload an initial image.
const filename = await upload( '.wp-block-image input[type="file"]' );

await waitForImage( filename );
// Resize the Uploaded Image.
await openDocumentSettingsSidebar();
await page.waitForSelector(
'[aria-label="Image size presets"] button:first-child',
{ visible: true }
);
await page.click(
'[aria-label="Image size presets"] button:first-child'
);
Expand Down

0 comments on commit 99a0696

Please sign in to comment.