Skip to content

Commit

Permalink
[7.6] 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) (#59592)
  • Loading branch information
brianseeders authored Mar 10, 2020
1 parent 918cdd4 commit b77b127
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 PageObjects.timePicker.setDefaultAbsoluteRange();

Expand Down

0 comments on commit b77b127

Please sign in to comment.