Skip to content

Commit

Permalink
Use index pattern id to find page in import_vector_map_tab.spec.js (#847
Browse files Browse the repository at this point in the history
) (#851)

Signed-off-by: Junqiu Lei <junqiu@amazon.com>
(cherry picked from commit 1cca991)

Co-authored-by: Junqiu Lei <junqiu@amazon.com>
  • Loading branch information
opensearch-trigger-bot[bot] and junqiu-lei authored Sep 14, 2023
1 parent 7534377 commit a727871
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 a727871

Please sign in to comment.