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: change the way to click the plus panel button in the Consoles page object #8024

Merged
merged 3 commits into from
Dec 22, 2017

Conversation

SkorikSergey
Copy link
Contributor

What does this PR do?

We have unexpected fail of WorkspaceDetailsSingleMachineTest selenium test. The context menu for adding new Terminal or opening the Servers list is not appeared after clicking button.

Log:

Driver info: org.eclipse.che.selenium.core.SeleniumWebDriver
	at org.eclipse.che.selenium.dashboard.WorkspaceDetailsSingleMachineTest.checkServerInServersList(WorkspaceDetailsSingleMachineTest.java:259)
	at org.eclipse.che.selenium.dashboard.WorkspaceDetailsSingleMachineTest.startWorkspaceAndCheckChanges(WorkspaceDetailsSingleMachineTest.java:230)
Caused by: org.openqa.selenium.NoSuchElementException: 
no such element: Unable to locate element: {"method":"id","selector":"contextMenu/Servers"}

Report with reproduced bug:
https://ci.codenvycorp.com/view/qa/job/che-integration-tests-master-docker/122/Selenium_tests_report/

Screenshot:
org eclipse che selenium dashboard workspacedetailssinglemachinetest startworkspaceandcheckchanges_zqqeheai

What issues does this PR fix or reference?

#8020

@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. team/production labels Dec 22, 2017
@@ -160,7 +160,8 @@ public void clickOnServerItemInContextMenu() {
}

public void clickOnPlusMenuButton() {
redrawDriverWait.until(visibilityOf(plusMenuBtn)).click();
redrawDriverWait.until(visibilityOf(plusMenuBtn));
new Actions(seleniumWebDriver).moveToElement(plusMenuBtn).click().perform();
Copy link
Contributor

Choose a reason for hiding this comment

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

Use ActionFactory

@@ -56,7 +56,7 @@
/** @author Skoryk Serhii */
public class WorkspaceDetailsSingleMachineTest {
private static final String PROJECT_NAME = NameGenerator.generate("project", 4);
private static final Map<String, Boolean> EXPECTED_INSTALLERS =
private static final ImmutableMap<String, Boolean> EXPECTED_INSTALLERS =
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you, please, fix EXPECTED_VARIABLES constant in the same way?

@SkorikSergey SkorikSergey merged commit 458dd4f into master Dec 22, 2017
@SkorikSergey SkorikSergey deleted the fixWorkspaceDetailsSingleMachineTest branch December 22, 2017 15:03
@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 22, 2017
@benoitf benoitf added this to the 6.0.0-M4 milestone Dec 22, 2017
This pull request was closed.
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.

4 participants