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: fix unstable CheckStopStartWsTest selenium test #8640

Merged
merged 3 commits into from
Feb 7, 2018

Conversation

SkorikSergey
Copy link
Contributor

@SkorikSergey SkorikSergey commented Feb 6, 2018

What does this PR do?

This PR fix CheckStopStartWsTest selenium test :

  • increase timeout for checking for the Terminal when a workspace is starting;
  • add waiting that the Profile menu is enabled for checking that workspace is fully started.

What issues does this PR fix or reference?

#8647

@SkorikSergey SkorikSergey added kind/bug Outline of a bug - must adhere to the bug report template. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. team/che-qe labels Feb 6, 2018
terminal.waitTerminalTab(LOADER_TIMEOUT_SEC);
loader.waitOnClosed();
terminal.waitTerminalTab(EXPECTED_MESS_IN_CONSOLE_SEC);
menu.waitMenuItemIsEnabled(PROFILE_MENU);
Copy link
Contributor

@dmytro-ndp dmytro-ndp Feb 7, 2018

Choose a reason for hiding this comment

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

This verification slightly duplicates another one in test CreateWorkspaceOnDashboardTest.
To avoid duplication and to have one place to change verification in future, I would suggest moving the next commands from the test CreateWorkspaceOnDashboardTest to separate method Ide::waitOpenedWorkspaceIsReadyToUse() and use it instead:

    projectExplorer.waitProjectExplorer(PREPARING_WS_TIMEOUT_SEC); // we need long timeout for OSIO
    terminal.waitTerminalTab(PREPARING_WS_TIMEOUT_SEC); // we need long timeout for OSIO
    menu.waitMenuItemIsEnabled(WORKSPACE);


toastLoader.clickOnStartButton();
loader.waitOnClosed();
projectExplorer.waitProjectExplorer();
Copy link
Contributor

Choose a reason for hiding this comment

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

@SkorikSergey SkorikSergey merged commit 083960e into master Feb 7, 2018
@SkorikSergey SkorikSergey deleted the fixCheckStopStartWsTest branch February 7, 2018 12:05
@benoitf benoitf added this to the 6.1.0 milestone Feb 7, 2018
@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 Feb 7, 2018
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