Skip to content

Commit

Permalink
Fix functional test
Browse files Browse the repository at this point in the history
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
  • Loading branch information
abbyhu2000 committed Oct 28, 2022
1 parent 022f526 commit 2436476
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/plugins/vis_builder/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Visualization Builder
# VisBuilder

An OpenSearch Dashboards plugin for a visualization experience that makes exploring data and creating visualizations much easier. It will act as an additional way to create visualizations alongside the exiting tools within the current visualizations plugin. The tool will be incremental to the visualization tools available to users in OpenSearch Dashboards today.

Expand Down
8 changes: 4 additions & 4 deletions test/functional/apps/vis_builder/_experimental_vis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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);
});

Expand Down
2 changes: 1 addition & 1 deletion test/functional/page_objects/vis_builder_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function VisBuilderPageProvider({ getService, getPageObjects }: FtrProvid
};

public async navigateToCreateVisBuilder() {
await common.navigateToApp('visBuilder');
await common.navigateToApp('vis-builder');
await header.waitUntilLoadingHasFinished();
}

Expand Down

0 comments on commit 2436476

Please sign in to comment.