Skip to content

Commit

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

# Backport

This will backport the following commits from `main` to `8.11`:
- [[QA] Change default time interval in upgrade tests for stack
integration (#171705)](#171705)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Marius
Dragomir","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-11-23T06:51:17Z","message":"[QA]
Change default time interval in upgrade tests for stack integration
(#171705)\n\n## Summary\r\n\r\nSimilar to
#170483, it just fixes\r\nthe
interval in one other
place.","sha":"358cff48f1e632041f9d31318e4cdee2b5fe99f9","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test","Team:QA","release_note:skip","test-stack-integration","v8.12.0","v8.11.2"],"number":171705,"url":"https://github.com/elastic/kibana/pull/171705","mergeCommit":{"message":"[QA]
Change default time interval in upgrade tests for stack integration
(#171705)\n\n## Summary\r\n\r\nSimilar to
#170483, it just fixes\r\nthe
interval in one other
place.","sha":"358cff48f1e632041f9d31318e4cdee2b5fe99f9"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/171705","number":171705,"mergeCommit":{"message":"[QA]
Change default time interval in upgrade tests for stack integration
(#171705)\n\n## Summary\r\n\r\nSimilar to
#170483, it just fixes\r\nthe
interval in one other
place.","sha":"358cff48f1e632041f9d31318e4cdee2b5fe99f9"}},{"branch":"8.11","label":"v8.11.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Marius Dragomir <[email protected]>
  • Loading branch information
kibanamachine and marius-dr authored Nov 23, 2023
1 parent 4951fe2 commit c0735c6
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 c0735c6

Please sign in to comment.