Skip to content

Commit

Permalink
Add e2e tests that should pass
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Sep 16, 2019
1 parent ba9759c commit 0e2d6be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/e2e-tests/specs/undo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ describe( 'undo', () => {
await pressKeyWithModifier( 'primary', 'z' );

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

await pressKeyWithModifier( 'primary', 'z' );

expect( await getEditedPostContent() ).toBe( '' );
} );

it( 'should undo typing after non input change', async () => {
Expand All @@ -43,6 +47,10 @@ describe( 'undo', () => {
await pressKeyWithModifier( 'primary', 'z' );

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

await pressKeyWithModifier( 'primary', 'z' );

expect( await getEditedPostContent() ).toBe( '' );
} );

it( 'Should undo to expected level intervals', async () => {
Expand Down

0 comments on commit 0e2d6be

Please sign in to comment.