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

[tests] Nightwatch issues clicking context menu item #5738

Closed
kulmann opened this issue Aug 26, 2021 · 2 comments
Closed

[tests] Nightwatch issues clicking context menu item #5738

kulmann opened this issue Aug 26, 2021 · 2 comments

Comments

@kulmann
Copy link
Contributor

kulmann commented Aug 26, 2021

PR #5725 introduces the context menu to the acceptance tests. First use cases are opening the sidebar in Details panel and opening the sidebar in Actions panel.

However, in some cases (100% reproducible) the buttons in the context menu are not found. Following the test runs in a VNC viewer I can see that the context menu is indeed open, but the buttons are in some steps found, in some steps not found.

A good example for a failing test is:
webUISharingInternalGroupsSharingIndicator/shareWithGroups.feature:136

It opens the right sidebar twice. Both times via the context menu Details button. The first time it works fine, the second time the button is not found although it's visible on the screen and the css selector works fine. I have no clue why this is happening. Help is much appreciated.

@individual-it
Copy link
Member

seems to be solved by using xpath instead of CSS selector

@kulmann
Copy link
Contributor Author

kulmann commented Aug 26, 2021

Yes, can confirm that using xpath solved the issue. I'm super confused by that. Might be a bug in nightwatch or selenium...

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

No branches or pull requests

2 participants