-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
…ertToProjectWithPomFileTestChe6
…that after refreshine web page the Editor tab name is not changed
ide.open(workspace); | ||
projectExplorer.waitProjectExplorer(); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need
> is needed
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/4402/ |
What does this PR do?
This PR:
What issues does this PR fix or reference?
#7831