[Lens] Add retry to drag and drop to fix flakiness (#108657)

* [Lens] Add retry to drag and drop to fix flakiness

* Unskip test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Stratoula Kalafateli 2021-08-18 15:27:02 +03:00 committed by GitHub
parent a2be619c98
commit 74b2a3c383
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,16 +10,18 @@ import { FtrProviderContext } from '../../ftr_provider_context';
export default function ({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['visualize', 'lens', 'common', 'header']);
const retry = getService('retry');
describe('lens drag and drop tests', () => {
// FLAKY: https://github.com/elastic/kibana/issues/108352
describe.skip('basic drag and drop', () => {
describe('basic drag and drop', () => {
it('should construct the basic split xy chart', async () => {
await PageObjects.visualize.navigateToNewVisualization();
await PageObjects.visualize.clickVisType('lens');
await PageObjects.lens.goToTimeRange();
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.lens.dragFieldToWorkspace('@timestamp');
await retry.try(async () => {
await PageObjects.lens.dragFieldToWorkspace('@timestamp');
});
expect(await PageObjects.lens.getDimensionTriggerText('lnsXY_xDimensionPanel')).to.eql(
'@timestamp'