Skip to content

Commit

Permalink
Use index pattern id to find page in import_vector_map_tab.spec.js
Browse files Browse the repository at this point in the history
Signed-off-by: Junqiu Lei <[email protected]>
  • Loading branch information
junqiu-lei committed Sep 14, 2023
1 parent 9a39559 commit 526d385
Showing 1 changed file with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,14 @@ describe('Verify the presence of import custom map tab in region map plugin', ()
cy.deleteAllIndices();
miscUtils.addSampleData();

cy.visit(`${BASE_PATH}/app/visualize#/`);

// Click on "Create Visualization" tab
cy.contains('Create visualization').click({ force: true });

// Click on "Region Map" icon
cy.contains('Region Map').click({ force: true });

// Select index source - opensearch_dashboards_sample_data_flights
cy.contains('opensearch_dashboards_sample_data_flights').click({
force: true,
});
// Load region map visualization with sample data opensearch_dashboards_sample_data_flights
cy.visit(
`${BASE_PATH}/app/visualize#/create?type=region_map&indexPattern=d3d7af60-4c81-11e8-b3d7-01146121b73d`,
{
retryOnStatusCodeFailure: true,
timeout: 60000,
}
);
});

it('checks import custom map tab is present', () => {
Expand Down

0 comments on commit 526d385

Please sign in to comment.