Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Testing: Add E2E test to verify demo errors
  • Loading branch information
aduth committed Sep 21, 2018
commit f0bb9b72c57ea3b272ad29004834654016165458
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.
} );
} );