Skip to content

Commit

Permalink
Testing: Add E2E test to verify demo errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Sep 17, 2018
1 parent 9097222 commit fabe57c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/e2e/specs/demo.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Internal dependencies
*/
import { visitAdmin } from '../support/utils';

describe( 'new editor state', () => {
beforeAll( async () => {
await visitAdmin( 'post-new.php', 'gutenberg-demo' );
} );

it( 'should not error', () => {
// This test case is intentionally empty. The `beforeAll` lifecycle of
// navigating to the Demo page is sufficient assertion in itself, as it
// will trigger the global console error capturing if an error occurs
// during this process.
//
// If any other test cases are added which verify expected behavior of
// the demo post, this empty test case can be removed.
} );
} );

0 comments on commit fabe57c

Please sign in to comment.