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 unexpected fails of "CheckBasicFunctionalityInCommandsExplorerTest", "CheckOnValidAndInvalidPackageNameTest" and "CheckShowHideHiddenFilesTest" selenium tests #11723

Merged
merged 2 commits into from
Oct 24, 2018

Conversation

Ohrimenko1988
Copy link
Contributor

What does this PR do?

Fix unexpected fails of "CheckBasicFunctionalityInCommandsExplorerTest", "CheckOnValidAndInvalidPackageNameTest" and "CheckShowHideHiddenFilesTest" selenium tests

What issues does this PR fix or reference?

Issue: #11716

Release Notes

Docs PR

@Ohrimenko1988 Ohrimenko1988 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 Oct 24, 2018
try {
waitItemIsSelected(path, REDRAW_UI_ELEMENTS_TIMEOUT_SEC);
return;
} catch (TimeoutException e) {
seleniumWebDriverHelper.hideContextMenu();
waitContextMenuPopUpClosed();
if (i == 2) {
throw e;
if (i >= 2) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i > 1 looks simpler

waitContextMenu();

try {
waitItemIsSelected(path, REDRAW_UI_ELEMENTS_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.

The command waitItemIsSelected() has been added above.
Does it still make sense to check on item selection again after we obtained context menu?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This block of code checks an error which described in the error message

@Ohrimenko1988 Ohrimenko1988 merged commit f2688d9 into master Oct 24, 2018
@Ohrimenko1988 Ohrimenko1988 deleted the selen-fix-tests branch October 24, 2018 15:07
@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 Oct 25, 2018
@benoitf benoitf added this to the 6.14.0 milestone Oct 25, 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.

4 participants