Skip to content

Commit

Permalink
[7.x] Navigate back to discover app during test, because the saved se…
Browse files Browse the repository at this point in the history
…arch from the preceding test has major performance problems when used with this test (#59571) (#59591)
  • Loading branch information
brianseeders authored Mar 10, 2020
1 parent 6e08471 commit 91f8071
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/functional/apps/discover/_discover.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default function({ getService, getPageObjects }) {
const log = getService('log');
const retry = getService('retry');
const esArchiver = getService('esArchiver');
const browser = getService('browser');
const kibanaServer = getService('kibanaServer');
const queryBar = getService('queryBar');
const PageObjects = getPageObjects(['common', 'discover', 'header', 'timePicker']);
Expand Down Expand Up @@ -188,7 +187,7 @@ export default function({ getService, getPageObjects }) {
// skipping this until we get an elastic-chart alternative to check the ticks value
it.skip('should show ticks in the correct time zone after switching', async function() {
await kibanaServer.uiSettings.replace({ 'dateFormat:tz': 'America/Phoenix' });
await browser.refresh();
await PageObjects.common.navigateToApp('discover');
await PageObjects.header.awaitKibanaChrome();
await PageObjects.timePicker.setDefaultAbsoluteRange();

Expand All @@ -213,7 +212,7 @@ export default function({ getService, getPageObjects }) {
});
it('should show bars in the correct time zone after switching', async function() {
await kibanaServer.uiSettings.replace({ 'dateFormat:tz': 'America/Phoenix' });
await browser.refresh();
await PageObjects.common.navigateToApp('discover');
await PageObjects.header.awaitKibanaChrome();
await queryBar.setQuery('');
await PageObjects.timePicker.setDefaultAbsoluteRange();
Expand Down

0 comments on commit 91f8071

Please sign in to comment.