Skip to content
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

[ TS-SELENIUM ] Investigating new typescript related test framework #13200

Merged
merged 63 commits into from
May 6, 2019

Conversation

Ohrimenko1988
Copy link
Contributor

What does this PR do?

Implements new test solution (selenium-typescript + Mocha + Chai). And moves existed "Cypress" codebase to this framework

What issues does this PR fix or reference?

Issue: #13114

Release Notes

Docs PR

Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
@Ohrimenko1988 Ohrimenko1988 added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. kind/task Internal things, technical debt, and to-do tasks to be performed. team/che-qe labels Apr 22, 2019
@rhopp
Copy link
Contributor

rhopp commented Apr 26, 2019

ci-test

Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
@ashumilova ashumilova removed their request for review April 26, 2019 12:49
@che-bot
Copy link
Contributor

che-bot commented Apr 26, 2019

Results of automated E2E tests of Eclipse Che Multiuser on OCP:
Build details
Test report
docker image: eclipseche/che-server:13200
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@l0rd l0rd mentioned this pull request Apr 29, 2019
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
@Ohrimenko1988
Copy link
Contributor Author

ci-build

Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>


@injectable()
export class NewWorkspace {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about changing the name to e.g. WorkspaceHandler and include the methods stopWorkspaceByUI and deleteWorkspaceByUI here too, so all the logic arount handling the workspace will be on once place? Or is there some reason to have it separated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "NewWorkspace" pageobject describes "NewWorkspace" page

})

test("Add 'Java Language Support' plugin to workspace", async () => {
await workspaceDetailsPlugins.addPluginAndOpenWorkspace(namespace, workspaceName, javaPluginName, pluginId)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'll split this logic to two lines: addPlugins and openWorksapce because I don't think these operations are atomic and we maybe could want to add more plugins before opening workspace.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you are right, but we can't check that plugins are successfully added until workspace been run.

@@ -32,6 +32,14 @@ export class ProjectTree {
return `${this.getExpandIconLocator(itemPath)}:not(.theia-mod-collapsed)`;
}

private getExpandIconLocator(itemPath: string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Ohrimenko1988 are you going to address this?

const pageSourceFileName: string = `${testReportDirPath}/pagesource-${testTitle}.html`

//create reporter dir if not exist
await fs.exists(reportDirPath, async isDirExist => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From Node.js v10.12 you can use recursive version of mkdir which IMHO doesn't do anything if the directory already exists. Isn't fs.exists() call unnecessary? BTW v10 is now active LTS release so I suggest to use it.

@Ohrimenko1988
Copy link
Contributor Author

ci-build

@l0rd
Copy link
Contributor

l0rd commented May 6, 2019

Let's merge this PR and fix the technical debts refactorings in a separate PR

Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
@Ohrimenko1988 Ohrimenko1988 merged commit 1def7da into master May 6, 2019
@Ohrimenko1988 Ohrimenko1988 deleted the typescript-selenium branch May 6, 2019 14:38
@Ohrimenko1988 Ohrimenko1988 removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label May 6, 2019
@benoitf
Copy link
Contributor

benoitf commented May 16, 2019

hello,

what are the CQs for all the dependencies used in that PR ?
I also see caret ranges which is not compliant AFAIK with Eclipse policy about IP dependencies

@Ohrimenko1988
Copy link
Contributor Author

Ohrimenko1988 commented May 17, 2019

Hello, CQ's for dependencies are in the pending state

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.