mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[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:
parent
a2be619c98
commit
74b2a3c383
1 changed files with 5 additions and 3 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue