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

Selenium: update the ConvertToProjectWithPomFileTest selenium test #7945

Merged
merged 5 commits into from
Dec 19, 2017

Conversation

SkorikSergey
Copy link
Contributor

What does this PR do?

This PR:

What issues does this PR fix or reference?

#7831

@SkorikSergey SkorikSergey added kind/task Internal things, technical debt, and to-do tasks to be performed. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. target/che6 labels Dec 19, 2017
ide.open(workspace);
projectExplorer.waitProjectExplorer();
Copy link
Contributor

@dmytro-ndp dmytro-ndp Dec 19, 2017

Choose a reason for hiding this comment

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

Why do we need to open project in setUp()?
It's better to do it in the appropriate tests to avoid skipping of all tests execution in case of error, and to prevent duplication of code.
Or expand full project tree at once.

editor.deleteAllContent();
actionsFactory.createAction(seleniumWebDriver).sendKeys(EXPECTED_TEXT).perform();
editor.waitTextIntoEditor(EXPECTED_TEXT);
WaitUtils.sleepQuietly(5);
Copy link
Contributor

Choose a reason for hiding this comment

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

too big sleep. Please, add explanation why it is needed.

editor.waitTabIsPresent("qa-spring-sample");
editor.goToCursorPositionVisible(18, 17);
editor.typeTextIntoEditor("new-");
WaitUtils.sleepQuietly(5);
Copy link
Contributor

Choose a reason for hiding this comment

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

too big sleep. Please, add explanation why it is needed.

@SkorikSergey
Copy link
Contributor Author

ci-build

editor.waitActive();
editor.waitTabIsPresent("pom.xml");
editor.deleteAllContent();
actionsFactory.createAction(seleniumWebDriver).sendKeys(EXPECTED_TEXT).perform();
editor.waitTextIntoEditor(EXPECTED_TEXT);

// this timeout need for waiting that the Editor tab name of 'pom.xml' file is changed
Copy link
Contributor

Choose a reason for hiding this comment

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

need > is needed

@@ -124,6 +124,8 @@ public void checkEditorTabNameAfterChangingArtifactID() {
editor.waitTabIsPresent("qa-spring-sample");
editor.goToCursorPositionVisible(18, 17);
editor.typeTextIntoEditor("new-");

// this timeout need for waiting that the Editor tab name of 'pom.xml' file is changed
Copy link
Contributor

Choose a reason for hiding this comment

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

need > is needed

@SkorikSergey SkorikSergey merged commit c48a525 into che6 Dec 19, 2017
@SkorikSergey SkorikSergey deleted the reworkConvertToProjectWithPomFileTestChe6 branch December 19, 2017 14:34
@benoitf benoitf added this to the 6.0.0-M4 milestone Dec 19, 2017
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Dec 19, 2017
@codenvy-ci
Copy link

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.

None yet

5 participants