Skip to content

Commit

Permalink
feat: optimize based on comments
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Nov 15, 2024
1 parent 873ee8c commit 7d3a6f4
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ if (Cypress.env('WORKSPACE_ENABLED')) {
});

after(() => {
cy.removeSampleDataForWorkspace(
'ecommerce',
sourceWorkspaceId,
datasourceId
);
cy.removeSampleDataForWorkspace(
'ecommerce',
targetWorkspaceId,
datasourceId
);
cy.deleteWorkspaceByName(sourceWorkspaceName);
cy.deleteWorkspaceByName(targetWorkspaceName);
sourceWorkspaceId = '';
Expand Down Expand Up @@ -115,6 +125,7 @@ if (Cypress.env('WORKSPACE_ENABLED')) {
);
});

// TODO: this test case should be removed once index pattern access outside of workspace being blocked in the future.
it('Should not show set as default button when outside workspace', () => {
cy.request({
url: `${BASE_PATH}/api/opensearch-dashboards/management/saved_objects/_find?workspaces=${targetWorkspaceId}&page=1&type=index-pattern`,
Expand Down

0 comments on commit 7d3a6f4

Please sign in to comment.