Skip to content

Commit 3c9cc7f

Browse files
authored
fix(e2e): fix CreateWorkspaceWithExistingNameFromGitUrl test for airgap clusters (#24001)
* Fixes the test that was failing on airgap clusters
1 parent fc727e0 commit 3c9cc7f

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

‎tests/e2e/specs/miscellaneous/CreateWorkspaceWithExistingNameFromGitUrl.spec.ts‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ suite(`"Start workspace with existed workspace name" test ${BASE_TEST_CONSTANTS.
7575
await waitDashboardPage();
7676

7777
await createWorkspace.setGitRepositoryUrl(factoryUrl);
78-
await createWorkspace.waitForCheckboxState(true);
7978
expect(await createWorkspace.getGitRepositoryUrl()).to.be.equal(factoryUrl);
8079
await createWorkspace.clickOnCreateAndOpenButton();
8180
await createWorkspace.performTrustAuthorPopup();
@@ -88,8 +87,8 @@ suite(`"Start workspace with existed workspace name" test ${BASE_TEST_CONSTANTS.
8887
test('Verify existing workspace opens instead of creating a duplicate', async function (): Promise<void> {
8988
await waitDashboardPage();
9089

91-
await createWorkspace.setGitRepositoryUrl(factoryUrl);
9290
await createWorkspace.setCreateNewWorkspaceCheckbox(false);
91+
await createWorkspace.setGitRepositoryUrl(factoryUrl);
9392
expect(await createWorkspace.getGitRepositoryUrl()).to.be.equal(factoryUrl);
9493
await createWorkspace.clickOnCreateAndOpenButton();
9594
await createWorkspace.performTrustAuthorPopup();
@@ -99,13 +98,11 @@ suite(`"Start workspace with existed workspace name" test ${BASE_TEST_CONSTANTS.
9998
expect(WorkspaceHandlingTests.getWorkspaceName()).to.be.equal(firstWorkspaceName);
10099
});
101100

102-
test('Ensure `new` is appended and a new workspace is created without warnings', async function (): Promise<void> {
101+
test('Ensure a new workspace is created when "Create New" is enabled', async function (): Promise<void> {
103102
await waitDashboardPage();
104103

105-
await createWorkspace.setGitRepositoryUrl(factoryUrl);
106-
await createWorkspace.waitForCheckboxState(true);
107104
await createWorkspace.setCreateNewWorkspaceCheckbox(true);
108-
105+
await createWorkspace.setGitRepositoryUrl(factoryUrl);
109106
await createWorkspace.clickOnCreateAndOpenButton();
110107
await createWorkspace.performTrustAuthorPopup();
111108

@@ -119,8 +116,8 @@ suite(`"Start workspace with existed workspace name" test ${BASE_TEST_CONSTANTS.
119116
test('Verify warning appears with list of existing workspaces and open the first created workspace', async function (): Promise<void> {
120117
await waitDashboardPage();
121118

122-
await createWorkspace.setGitRepositoryUrl(factoryUrl);
123119
await createWorkspace.setCreateNewWorkspaceCheckbox(false);
120+
await createWorkspace.setGitRepositoryUrl(factoryUrl);
124121
await createWorkspace.clickOnCreateAndOpenButton();
125122
await createWorkspace.performTrustAuthorPopup();
126123
const originalWindowHandle: string = await browserTabsUtil.getCurrentWindowHandle();

0 commit comments

Comments
 (0)