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

Fix bug in AskForValueDialog in typeAndWaitText method #7545

Merged
merged 4 commits into from
Nov 24, 2017

Conversation

Ohrimenko1988
Copy link
Contributor

What does this PR do?

Fix bug in AskForValueDialog in typeAndWaitText method

What issues does this PR fix or reference?

Issue #7543

Release Notes

Docs PR

@Ohrimenko1988 Ohrimenko1988 added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. target/che6 labels Nov 24, 2017
@@ -137,7 +138,10 @@ public void clickCancelButtonJava() {
}

public void typeAndWaitText(String text) {
input.sendKeys(text);
waitFormToOpen();
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be checked before the call of the method.

@@ -137,7 +138,10 @@ public void clickCancelButtonJava() {
}

public void typeAndWaitText(String text) {
input.sendKeys(text);
waitFormToOpen();
new WebDriverWait(seleniumWebDriver, TestTimeoutsConstants.LOAD_PAGE_TIMEOUT_SEC)
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch!
Lets extract new WebDriverWait(seleniumWebDriver, TestTimeoutsConstants.LOAD_PAGE_TIMEOUT_SEC) into the separate constant and add similar verification in other methods.

loadPageWait.until(visibilityOf(inputNameJavaClass)).sendKeys(text);
}

public void waitTextInFieldName(String expectedText) {
Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO it's better to enclose call of this method into the typeTextInFieldName() in similar way, as it was done for waitInputNameContains() method.

@@ -31,11 +31,11 @@ che.selenium.infrastructure=docker
# Define configuration for che default test user.
# For che single user assembly, the default values will be enough.
# For che multiuser assembly, user must be already created on identity provider service.
che.test_user.email=che@eclipse.org
che.test_user.password=secret
che.test_user.email=admin@admin.com
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it really what you wanted to change? :-)

@Ohrimenko1988 Ohrimenko1988 merged commit e9e3cae into che6 Nov 24, 2017
@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 Nov 24, 2017
@Ohrimenko1988 Ohrimenko1988 deleted the che6-create-file-context-menu branch November 24, 2017 13:31
@benoitf benoitf added this to the 6.0.0-M3 milestone Nov 27, 2017
@benoitf benoitf added the kind/bug Outline of a bug - must adhere to the bug report template. label Nov 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants