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
Next Next commit
Fix failing image e2e test by waiting for required element before att…
…empting click
  • Loading branch information
Glen Davies committed Nov 30, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 94e57b94a0bab62854f2f4edf6c8f7842ab25da8
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', () => {

// 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'
);