Skip to content

Commit

Permalink
Testing: Fix Classic block Add Media toolbar button click
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed May 8, 2019
1 parent e32c2ee commit 0e89d4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/e2e-test-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### Bug Fixes

- WordPress 5.2: Fix a false positive build failure caused by Dashicons font file.
- WordPress 5.2: Fix a test failure for Classic Block media insertion caused by a change in tooltips text ([rWP45066](https://core.trac.wordpress.org/changeset/45066)).

## 1.1.0 (2019-03-20)

Expand Down
4 changes: 2 additions & 2 deletions packages/e2e-tests/specs/blocks/classic.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ describe( 'Classic', () => {
await page.keyboard.type( 'test' );

// Click the image button.
await page.waitForSelector( 'div[aria-label="Add Media"]' );
await page.click( 'div[aria-label="Add Media"]' );
await page.waitForSelector( 'div[aria-label^="Add Media"]' );
await page.click( 'div[aria-label^="Add Media"]' );

// Wait for media modal to appear and upload image.
await page.waitForSelector( '.media-modal input[type=file]' );
Expand Down

0 comments on commit 0e89d4f

Please sign in to comment.