Skip to content

Commit

Permalink
Add intentonally failing tests to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Jan 24, 2021
1 parent bc78e3a commit cedeac5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/e2e-tests/specs/widgets/adding-widgets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ describe( 'Widgets screen', () => {
// firstWidgetArea
// );

// Simulate an unexpected error in the tests.
( () => {
throw new Error( 'Oops!' );
} )();

await addParagraphBlock.click();

const addedParagraphBlockInFirstWidgetArea = await firstWidgetArea.$(
Expand Down Expand Up @@ -192,6 +197,9 @@ describe( 'Widgets screen', () => {
10
);

// Simulate a failing test.
expect( true ).toBe( false );

let inlineInserterButton = await getInlineInserterButton();
await inlineInserterButton.click();

Expand Down

0 comments on commit cedeac5

Please sign in to comment.