From 65618904bd082445caf4c81bb6a55d418175b256 Mon Sep 17 00:00:00 2001 From: yubonluo Date: Thu, 14 Nov 2024 10:53:39 +0800 Subject: [PATCH] fix test error Signed-off-by: yubonluo --- .../workspace-plugin/mds_workspace_initial.spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_initial.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_initial.spec.js index b8cfe1af9..420e18516 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_initial.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_initial.spec.js @@ -222,10 +222,11 @@ if (Cypress.env('WORKSPACE_ENABLED')) { WORKSPACE_TEST_ROLE_NAME, workspaceTestRoleMapping ); - ADMIN_AUTH.newUser = NONE_DASHBOARDS_ADMIN_USERNAME; - ADMIN_AUTH.newPassword = workspaceTestUser.password; }); beforeEach(() => { + // Login as non OSD admin user + ADMIN_AUTH.newUser = NONE_DASHBOARDS_ADMIN_USERNAME; + ADMIN_AUTH.newPassword = workspaceTestUser.password; // Visit workspace initial page miscUtils.visitPage(`/app/home`); });