Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E Tests: Fix failing image e2e test by waiting for required element #36982

Merged
merged 9 commits into from
Nov 30, 2021
Prev Previous commit
Next Next commit
Add back the wait for the image resize buttons
  • Loading branch information
Glen Davies committed Nov 30, 2021
commit b99e6288b3614b23c69b3f970382d2a9a7ff890e
4 changes: 4 additions & 0 deletions packages/e2e-tests/specs/editor/blocks/image.test.js
Original file line number Diff line number Diff line change
@@ -317,6 +317,10 @@ describe( 'Image', () => {
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'
);