diff --git a/packages/e2e-tests/specs/undo.test.js b/packages/e2e-tests/specs/undo.test.js index 4200e31f1ca6b..50d80c58e06d4 100644 --- a/packages/e2e-tests/specs/undo.test.js +++ b/packages/e2e-tests/specs/undo.test.js @@ -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 () => { @@ -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 () => {