Skip to content

Commit

Permalink
[QA] Change default time interval in upgrade tests for stack integrat…
Browse files Browse the repository at this point in the history
…ion (#171705)

## Summary

Similar to #170483, it just fixes
the interval in one other place.
  • Loading branch information
marius-dr authored Nov 23, 2023
1 parent 97ac101 commit 358cff4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions x-pack/test/upgrade/apps/dashboard/dashboard_smoke_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
const log = getService('log');
const renderable = getService('renderable');
const dashboardExpect = getService('dashboardExpect');
const kibanaServer = getService('kibanaServer');
const PageObjects = getPageObjects(['common', 'header', 'home', 'dashboard', 'timePicker']);
const browser = getService('browser');

Expand All @@ -40,18 +41,22 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});
dashboardTests.forEach(({ name, numPanels }) => {
it('should launch sample ' + name + ' data set dashboard', async () => {
await kibanaServer.uiSettings.update({
'timepicker:timeDefaults': `{ "from": "now-5y", "to": "now"}`,
});
await PageObjects.home.launchSampleDashboard(name);
await PageObjects.timePicker.setCommonlyUsedTime('Last_1 year');
await PageObjects.header.waitUntilLoadingHasFinished();
await renderable.waitForRender();
const panelCount = await PageObjects.dashboard.getPanelCount();
expect(panelCount).to.be.above(numPanels);
});
});
it('should render visualizations', async () => {
await kibanaServer.uiSettings.update({
'timepicker:timeDefaults': `{ "from": "now-5y", "to": "now"}`,
});
await PageObjects.home.launchSampleDashboard('flights');
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.timePicker.setCommonlyUsedTime('Last_1 year');
await renderable.waitForRender();
log.debug('Checking saved searches rendered');
await dashboardExpect.savedSearchRowCount(49);
Expand Down

0 comments on commit 358cff4

Please sign in to comment.