Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
[7.4] FTR: clear browser storage between test suites (elastic#48683) (e…
Browse files Browse the repository at this point in the history
…lastic#49477)

* FTR: clear browser storage between test suites (elastic#48683)

* clear browser storage on test suite completion

* [logstash/pipeline_list] fix tests dependency

* always load new index data

* remove files
  • Loading branch information
dmlemeshko authored Nov 7, 2019
1 parent 4e8e740 commit 331be3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
2 changes: 2 additions & 0 deletions test/functional/services/remote/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ export async function RemoteProvider({ getService }: FtrProviderContext) {
.manage()
.window()
.setRect({ width, height });
await driver.executeScript('window.sessionStorage.clear();');
await driver.executeScript('window.localStorage.clear();');
});

lifecycle.on('cleanup', async () => await driver.quit());
Expand Down
16 changes: 4 additions & 12 deletions x-pack/test/functional/apps/logstash/pipeline_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export default function ({ getService, getPageObjects }) {
originalWindowSize = await browser.getWindowSize();
await browser.setWindowSize(1600, 1000);
await esArchiver.load('logstash/example_pipelines');
});

beforeEach(async () => {
await PageObjects.logstash.gotoPipelineList();
});

Expand Down Expand Up @@ -86,10 +89,6 @@ export default function ({ getService, getPageObjects }) {
await pipelineEditor.assertExists();
await pipelineEditor.assertDefaultInputs();
});

after(async () => {
await PageObjects.logstash.gotoPipelineList();
});
});

describe('delete button', () => {
Expand Down Expand Up @@ -122,15 +121,12 @@ export default function ({ getService, getPageObjects }) {

describe('row links', () => {
it('opens the selected row in the editor', async () => {
await PageObjects.logstash.gotoPipelineList();
await pipelineList.setFilter('tweets_and_beats');
await pipelineList.clickFirstRowId();
await pipelineEditor.assertExists();
await pipelineEditor.assertEditorId('tweets_and_beats');
});

after(async () => {
await PageObjects.logstash.gotoPipelineList();
});
});

describe('next page button', () => {
Expand Down Expand Up @@ -225,10 +221,6 @@ export default function ({ getService, getPageObjects }) {
queueCheckpointWrites,
});
});

after(async () => {
await PageObjects.logstash.gotoPipelineList();
});
});
});
}

0 comments on commit 331be3c

Please sign in to comment.