[Tests] Move beforeEach calls into tests

beforeEach failures do not have videos associated. We'd like to see
what's going wrong with these tests.

Change-Id: I1b723bcd7d00f15907647d5c7a4aa1f57578468c
This commit is contained in:
Jon Robson 2022-03-17 14:13:38 -07:00
parent 366d37efb1
commit c4f7c60f9f

View file

@ -15,17 +15,19 @@ describe( 'Wikitext Editor', () => {
beforeEach( () => { beforeEach( () => {
iAmLoggedIntoTheMobileWebsite(); iAmLoggedIntoTheMobileWebsite();
iAmOnAPageThatDoesNotExist(); iAmOnAPageThatDoesNotExist();
iClickTheEditButton();
iSeeTheWikitextEditorOverlay();
} ); } );
// @smoke // @smoke
it( 'Closing editor (overlay button)', () => { it( 'Closing editor (overlay button)', () => {
iClickTheEditButton();
iSeeTheWikitextEditorOverlay();
iClickTheOverlayCloseButton(); iClickTheOverlayCloseButton();
iDoNotSeeAnOverlay(); iDoNotSeeAnOverlay();
} ); } );
it( 'Closing editor (browser button)', () => { it( 'Closing editor (browser button)', () => {
iClickTheEditButton();
iSeeTheWikitextEditorOverlay();
iClickTheBrowserBackButton(); iClickTheBrowserBackButton();
iDoNotSeeAnOverlay(); iDoNotSeeAnOverlay();
} ); } );