Skip to content

Commit

Permalink
Fixed e2e-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abotteram committed Jul 16, 2019
1 parent cd9a36a commit fced87c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/e2e-tests/specs/__snapshots__/links.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ exports[`Links can be removed 1`] = `
exports[`Links should contain a label when it should open in a new tab 1`] = `
"<!-- wp:paragraph -->
<p>This is <a href=\\"http://w.org\\" target=\\"_blank\\" rel=\\"noreferrer noopener\\" aria-label=\\"WordPress (opens in a new tab)\\">WordPress</a></p>
<p>This is <a href=\\"http://w.org\\" target=\\"_blank\\" aria-label=\\"WordPress (opens in a new tab)\\" rel=\\"noreferrer noopener\\">WordPress</a></p>
<!-- /wp:paragraph -->"
`;
Expand Down
6 changes: 4 additions & 2 deletions packages/e2e-tests/specs/links.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,9 @@ describe( 'Links', () => {
// Check the checkbox.
await page.keyboard.press( 'Space' );
// Navigate back to the input field.
await page.keyboard.press( 'Tab' );
await pressKeyWithModifier( 'shift', 'Tab' );
await pressKeyWithModifier( 'shift', 'Tab' );
await pressKeyWithModifier( 'shift', 'Tab' );
// Submit the form.
await page.keyboard.press( 'Enter' );

Expand Down Expand Up @@ -529,7 +531,7 @@ describe( 'Links', () => {
// Uncheck the checkbox.
await page.keyboard.press( 'Space' );
// Navigate back to the input field.
await page.keyboard.press( 'Tab' );
await pressKeyWithModifier( 'shift', 'Tab' );
// Submit the form.
await page.keyboard.press( 'Enter' );

Expand Down

0 comments on commit fced87c

Please sign in to comment.