Skip to content

[DRAFT] Going through Custom che plugin registry test case #23450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/e2e/constants/MOCHA_CONSTANTS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const MOCHA_CONSTANTS: {

MOCHA_DELAYED_SUITE: process.env.MOCHA_DELAYED_SUITE === 'true',

MOCHA_DEFAULT_TIMEOUT: Number(process.env.MOCHA_DEFAULT_TIMEOUT) || 840000,
MOCHA_DEFAULT_TIMEOUT: Number(process.env.MOCHA_DEFAULT_TIMEOUT) || 1020000,

MOCHA_RETRIES: process.env.MOCHA_RETRIES || BASE_TEST_CONSTANTS.TEST_ENVIRONMENT === '' ? 0 : 2,

Expand Down
15 changes: 9 additions & 6 deletions tests/e2e/specs/miscellaneous/CustomOpenVSXRegistry.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,21 +157,24 @@ suite(
});

test('Recreate workspace and check VSX custom plugin ', async function (): Promise<void> {
await testWorkspaceUtil.deleteWorkspaceByName(WorkspaceHandlingTests.getWorkspaceName());
registerRunningWorkspace('');
await browserTabsUtil.navigateTo(FACTORY_TEST_CONSTANTS.TS_SELENIUM_FACTORY_URL());
// await this.driver.sleep(30000);
await driverHelper.wait(10000);

// await testWorkspaceUtil.deleteWorkspaceByName(WorkspaceHandlingTests.getWorkspaceName());
// registerRunningWorkspace('');
await browserTabsUtil.navigateTo('https://github.com/eclipse-che/che');
});
test('Registering the running workspace', function (): void {
registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
});

test('Check Custom VSX plugin', async function (): Promise<void> {
await projectAndFileTests.waitWorkspaceReadinessForCheCodeEditor();
Logger.debug(`new SideBarView().getContent().getSection: get ${testRepoProjectName}`);
Logger.debug(`new SideBarView().getContent().getSection: get che`);
projectSection = await projectAndFileTests.getProjectViewSession();
expect(await projectAndFileTests.getProjectTreeItem(projectSection, testRepoProjectName), 'Project folder was not imported').not
expect(await projectAndFileTests.getProjectTreeItem(projectSection, "che"), 'Project folder was not imported').not
.undefined;
await projectAndFileTests.performTrustAuthorDialog();
await projectAndFileTests.performTrustDialogs();
const extensionsView: SideBarView | undefined = await (await new ActivityBar().getViewControl('Extensions'))?.openView();
await driverHelper.wait(TIMEOUT_CONSTANTS.TS_COMMON_DASHBOARD_WAIT_TIMEOUT);
const sections: ViewSection[] | undefined = await extensionsView?.getContent().getSections();
Expand Down
Loading