Skip to content

Commit

Permalink
Make tests way faster by avoiding page reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed May 22, 2019
1 parent b467570 commit 69e8f62
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/InputHandler.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,17 @@ describe('InputHandler Integration Tests', function(): void {
});
page = (await browser.pages())[0];
await page.setViewport({ width, height });
await page.goto(APP);
await openTerminal();
});

after(() => {
browser.close();
});

beforeEach(async () => {
await page.goto(APP);
});

describe('CSI', () => {
beforeEach(async () => {
await openTerminal();
await page.evaluate(`window.term.reset()`);
});

it('ICH: Insert Ps (Blank) Character(s) (default = 1) - CSI Ps @', async function(): Promise<any> {
Expand Down

0 comments on commit 69e8f62

Please sign in to comment.