Skip to content

Commit

Permalink
Update 'NoSetupRepoFactory' E2E test (#23314)
Browse files Browse the repository at this point in the history
* Update 'NoSetupRepoFactory' E2E test
* Update license header
  • Loading branch information
artaleks9 authored Jan 17, 2025
1 parent 2f9d491 commit 0bc1c58
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions tests/e2e/specs/factory/NoSetupRepoFactory.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** *******************************************************************
* copyright (c) 2021-2024 Red Hat, Inc.
* copyright (c) 2021-2025 Red Hat, Inc.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -92,24 +92,7 @@ suite(
});

if (FACTORY_TEST_CONSTANTS.TS_SELENIUM_IS_PRIVATE_FACTORY_GIT_REPO) {
test(`Check that workspace cannot be created without PAT/OAuth for ${isPrivateRepo} repo`, async function (): Promise<void> {
await dashboard.waitLoader();
const loaderAlert: string = await dashboard.getLoaderAlert();
expect(loaderAlert).to.contain('Could not reach devfile at');
});

test('Check that workspace was not created', async function (): Promise<void> {
await dashboard.openDashboard();
await dashboard.clickWorkspacesButton();
await workspaces.waitPage();
const allCreatedWorkspacesNames: string[] = await workspaces.getAllCreatedWorkspacesNames();
expect(allCreatedWorkspacesNames).has.length(numberOfCreatedWorkspaces);
});

test('Check creating workspace using default devfile', async function (): Promise<void> {
await browserTabsUtil.navigateTo(FACTORY_TEST_CONSTANTS.TS_SELENIUM_FACTORY_URL());
await dashboard.waitLoader();
await dashboard.clickContinueWithDefaultDevfileButton();
await workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
await projectAndFileTests.waitWorkspaceReadinessForCheCodeEditor();
Expand Down

0 comments on commit 0bc1c58

Please sign in to comment.