-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing: Add E2E test to verify demo errors
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
} ); | ||
} ); |