Skip to content

Commit

Permalink
Tests: Refactor tests to stop using META_KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Nov 19, 2018
1 parent 5ba47d1 commit c81e843
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions test/e2e/specs/blocks/list.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
convertBlock,
pressWithModifier,
insertBlock,
META_KEY,
} from '../../support/utils';

describe( 'List', () => {
Expand Down Expand Up @@ -50,7 +49,7 @@ describe( 'List', () => {
it( 'can undo asterisk transform', async () => {
await clickBlockAppender();
await page.keyboard.type( '1. ' );
await pressWithModifier( META_KEY, 'z' );
await pressWithModifier( 'primary', 'z' );

expect( await getEditedPostContent() ).toMatchSnapshot();
} );
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/rich-text.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe( 'RichText', () => {

expect( await getEditedPostContent() ).toMatchSnapshot();

await pressWithModifier( META_KEY, 'z' );
await pressWithModifier( 'primary', 'z' );

expect( await getEditedPostContent() ).toMatchSnapshot();
} );
Expand Down

0 comments on commit c81e843

Please sign in to comment.