Skip to content

Commit

Permalink
Demo: Fix tests to consider the initial edits dirtying.
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Aug 21, 2019
1 parent 79d0b6a commit fa5365e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/e2e-tests/specs/demo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ describe( 'new editor state', () => {
await visitAdminPage( 'post-new.php', 'gutenberg-demo' );
} );

it( 'content should load without making the post dirty', async () => {
it( 'content should load, making the post dirty', async () => {
const isDirty = await page.evaluate( () => {
const { select } = window.wp.data;
return select( 'core/editor' ).isEditedPostDirty();
} );
expect( isDirty ).toBeFalsy();
expect( isDirty ).toBeTruthy();
} );

it( 'should be immediately saveable', async () => {
Expand Down

0 comments on commit fa5365e

Please sign in to comment.