mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Executing the visualize shared-item title/description tests in a try (#10441)
This function test can be flaky if we try to grab the attributes before the visualization has finished rendering, so we're wrapping it in a try
This commit is contained in:
parent
3d777270a2
commit
0bd7f4264e
1 changed files with 7 additions and 5 deletions
|
@ -21,11 +21,13 @@ bdd.describe('visualize app', function describeIndexTests() {
|
|||
description: 'AreaChart'
|
||||
};
|
||||
return PageObjects.visualize.clickVisualizationByName('Visualization AreaChart')
|
||||
.then(() => PageObjects.common.getSharedItemTitleAndDescription())
|
||||
.then(({ title, description }) => {
|
||||
expect(title).to.eql(expected.title);
|
||||
expect(description).to.eql(expected.description);
|
||||
});
|
||||
.then (() => PageObjects.common.try(function () {
|
||||
return PageObjects.common.getSharedItemTitleAndDescription()
|
||||
.then(({ title, description }) => {
|
||||
expect(title).to.eql(expected.title);
|
||||
expect(description).to.eql(expected.description);
|
||||
});
|
||||
}));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue