Skip to content

Commit

Permalink
[7.17] [FTRs] Execution Context: fix no data flakiness (#149406) (#14…
Browse files Browse the repository at this point in the history
…9417)

# Backport

This will backport the following commits from `main` to `7.17`:
- [[FTRs] Execution Context: fix no data flakiness
(#149406)](#149406)

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

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

<!--BACKPORT [{"author":{"name":"Alejandro Fernández
Haro","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-01-24T14:03:37Z","message":"[FTRs]
Execution Context: fix no data flakiness (#149406)\n\nResolves
https://github.com/elastic/kibana/issues/112102","sha":"09c11131271bec1b794d5a472294e6e125116f4d","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","backport:all-open","v8.7.0"],"number":149406,"url":"https://github.com/elastic/kibana/pull/149406","mergeCommit":{"message":"[FTRs]
Execution Context: fix no data flakiness (#149406)\n\nResolves
https://github.com/elastic/kibana/issues/112102","sha":"09c11131271bec1b794d5a472294e6e125116f4d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/149406","number":149406,"mergeCommit":{"message":"[FTRs]
Execution Context: fix no data flakiness (#149406)\n\nResolves
https://github.com/elastic/kibana/issues/112102","sha":"09c11131271bec1b794d5a472294e6e125116f4d"}}]}]
BACKPORT-->
  • Loading branch information
afharo authored Jan 24, 2023
1 parent bc23001 commit b7a67c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/test/functional_execution_context/tests/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { FtrProviderContext } from '../ftr_provider_context';
import { assertLogContains, isExecutionContextLog } from '../test_utils';

export default function ({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['common', 'dashboard', 'header', 'home']);
const PageObjects = getPageObjects(['common', 'dashboard', 'header', 'home', 'timePicker']);
const retry = getService('retry');

// Failing: See https://github.com/elastic/kibana/issues/112102
Expand All @@ -33,6 +33,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
describe('discover app', () => {
before(async () => {
await PageObjects.common.navigateToApp('discover');
await PageObjects.timePicker.setCommonlyUsedTime('Last_7 days');
await PageObjects.header.waitUntilLoadingHasFinished();
});

Expand Down Expand Up @@ -77,6 +78,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
before(async () => {
await PageObjects.common.navigateToApp('dashboard');
await PageObjects.dashboard.loadSavedDashboard('[Flights] Global Flight Dashboard');
await PageObjects.timePicker.setCommonlyUsedTime('Last_7 days');
await PageObjects.dashboard.waitForRenderComplete();
await PageObjects.header.waitUntilLoadingHasFinished();
});
Expand Down

0 comments on commit b7a67c3

Please sign in to comment.