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

JBIDE-27976 Adding more tests for Show In context menu #734

Merged
merged 2 commits into from Oct 14, 2021

Conversation

lgrossma
Copy link
Contributor

@lgrossma lgrossma commented Sep 30, 2021

Signed-off-by: lgrossma lgrossma@redhat.com
@odockal @jkopriva
Adding test cases for the rest of the options in server's "Show In" menu.

Signed-off-by: lgrossma <lgrossma@redhat.com>
@odockal odockal self-requested a review October 5, 2021 07:42
new ContextMenu().getItem("Show In", "Web Browser").select();
for (MenuItem item : items) {
if (item.getText().contains("Web Management Console")) {
isInMenu = true;
Copy link
Member

Choose a reason for hiding this comment

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

Put only a return statement here in order to not iterate over every item in the list. you need only first fulfilled condition.


return isInMenu;
Copy link
Member

Choose a reason for hiding this comment

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

simply return false here. no need to keep it in variable during iteration.

Signed-off-by: lgrossma <lgrossma@redhat.com>
@odockal
Copy link
Member

odockal commented Oct 13, 2021

@lgrossma One more thing, can you please paste an image of successful jenkins run?

@lgrossma
Copy link
Contributor Author

@odockal
Screenshot 2021-10-14 at 15 52 19

@odockal odockal merged commit ad9eb60 into jbosstools:master Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants