Skip to content

Commit

Permalink
Fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Apr 19, 2019
1 parent a3779d8 commit 25af307
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Using Hooks API Pressing reset block button resets the block 1`] = `""`;
4 changes: 2 additions & 2 deletions packages/e2e-tests/specs/plugins/hooks-api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
clickBlockAppender,
createNewPost,
deactivatePlugin,
getEditedPostContent,
} from '@wordpress/e2e-test-utils';

describe( 'Using Hooks API', () => {
Expand Down Expand Up @@ -33,7 +34,6 @@ describe( 'Using Hooks API', () => {
const paragraphContent = await page.$eval( 'div[data-type="core/paragraph"] p', ( element ) => element.textContent );
expect( paragraphContent ).toEqual( 'First paragraph' );
await page.click( '.edit-post-sidebar .e2e-reset-block-button' );
const newParagraphContent = await page.$eval( 'div[data-type="core/paragraph"] p', ( element ) => element.textContent );
expect( newParagraphContent ).toEqual( '' );
expect( await getEditedPostContent() ).toMatchSnapshot();
} );
} );

0 comments on commit 25af307

Please sign in to comment.