Skip to content

Commit

Permalink
add retry for checking Add button (#74551)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
dmlemeshko and elasticmachine authored Aug 10, 2020
1 parent 0a65e17 commit ce02573
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions x-pack/test/functional/apps/dashboard/_async_dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,19 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
'timePicker',
]);

// Flakky: https://github.com/elastic/kibana/issues/65949
describe.skip('sample data dashboard', function describeIndexTests() {
describe('sample data dashboard', function describeIndexTests() {
before(async () => {
await PageObjects.common.sleep(5000);
await PageObjects.common.navigateToUrl('home', '/tutorial_directory/sampleData', {
useActualUrl: true,
});
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.home.addSampleDataSet('flights');
const isInstalled = await PageObjects.home.isSampleDataSetInstalled('flights');
expect(isInstalled).to.be(true);
await retry.tryForTime(10000, async () => {
const isInstalled = await PageObjects.home.isSampleDataSetInstalled('flights');
expect(isInstalled).to.be(true);
});

// add the range of the sample data so we can pick it in the quick pick list
const SAMPLE_DATA_RANGE = `[
{
Expand Down

0 comments on commit ce02573

Please sign in to comment.