From ca008d681b834c92c2f1a70a4df94b18dcb6e5fd Mon Sep 17 00:00:00 2001 From: Lin Wang Date: Tue, 10 Sep 2024 16:54:56 +0800 Subject: [PATCH] Remove no need changes Signed-off-by: Lin Wang --- .../mds_workspace_import_sample_data_to.spec.js | 1 + cypress/utils/dashboards/workspace-plugin/commands.js | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_import_sample_data_to.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_import_sample_data_to.spec.js index 0f82b2fee..e88ac86f4 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_import_sample_data_to.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_import_sample_data_to.spec.js @@ -59,6 +59,7 @@ if (Cypress.env('WORKSPACE_ENABLED')) { beforeEach(() => { cy.visit(`/w/${workspaceId}/app/import_sample_data`); + cy.waitForLoader(); if (MDSEnabled) { cy.selectFromDataSourceSelector(dataSourceTitle, dataSourceId); } diff --git a/cypress/utils/dashboards/workspace-plugin/commands.js b/cypress/utils/dashboards/workspace-plugin/commands.js index 09d8b5851..49cba69d2 100644 --- a/cypress/utils/dashboards/workspace-plugin/commands.js +++ b/cypress/utils/dashboards/workspace-plugin/commands.js @@ -23,9 +23,7 @@ Cypress.Commands.add('deleteWorkspaceByName', (workspaceName) => { headers: { 'osd-xsrf': true, }, - body: { - perPage: 9999, - }, + body: {}, }).then((resp) => { if (resp && resp.body && resp.body.success) { resp.body.result.workspaces.map(({ name, id }) => {