From 168489367ef5f3b82d6b3941405005399662d77f Mon Sep 17 00:00:00 2001 From: abbyhu2000 Date: Fri, 28 Oct 2022 01:00:16 +0000 Subject: [PATCH] Fix functional test Signed-off-by: abbyhu2000 --- test/functional/apps/vis_builder/_experimental_vis.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functional/apps/vis_builder/_experimental_vis.ts b/test/functional/apps/vis_builder/_experimental_vis.ts index f9cbf393cb47..1743d4882281 100644 --- a/test/functional/apps/vis_builder/_experimental_vis.ts +++ b/test/functional/apps/vis_builder/_experimental_vis.ts @@ -19,11 +19,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await PageObjects.visualize.waitForVisualizationSelectPage(); // Try to find the visBuilder Vis type. - const wizardVisTypeExists = await PageObjects.visualize.hasVisType('visBuilder'); - expect(wizardVisTypeExists).to.be(true); + const visBuilderVisTypeExists = await PageObjects.visualize.hasVisType('vis-builder'); + expect(visBuilderVisTypeExists).to.be(true); // Create a new visualization - await PageObjects.visualize.clickVisType('visBuilder'); + await PageObjects.visualize.clickVisType('vis-builder'); // Check that the experimental banner is there and state that this is experimental const info = await PageObjects.visBuilder.getExperimentalInfo(); @@ -39,7 +39,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await PageObjects.visualize.waitForVisualizationSelectPage(); // Try to find the visBuilder Vis type. - const visBuilderVisTypeExists = await PageObjects.visualize.hasVisType('visBuilder'); + const visBuilderVisTypeExists = await PageObjects.visualize.hasVisType('vis-builder'); expect(visBuilderVisTypeExists).to.be(false); });