Skip to content

Commit

Permalink
feat(core): Add cleanup process for the page before perform immutable…
Browse files Browse the repository at this point in the history
… rule
  • Loading branch information
wadackel committed Nov 22, 2020
1 parent f383f44 commit c4e4820
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/tester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ export class Tester {
await series(
immutable.map((args) => async () => {
await this._execute(browser, page, tracker, args);

// Cleanup the page state.
await page.focus('body');
}),
);
} catch (e) {
Expand Down

0 comments on commit c4e4820

Please sign in to comment.