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

"element not interactable" exception in webUI tests #34689

Closed
phil-davis opened this issue Mar 5, 2019 · 7 comments
Closed

"element not interactable" exception in webUI tests #34689

phil-davis opened this issue Mar 5, 2019 · 7 comments

Comments

@phil-davis
Copy link
Contributor

e.g. https://drone.owncloud.com/owncloud/core/15759/787

        Exception: element not interactable
          (Session info: chrome=72.0.3626.119)
          (Driver info: chromedriver=2.46.628388 (4a34a70827ac54148e092aafb70504c4ea7ae926),platform=Linux 4.4.0-142-generic x86_64) in /drone/src/vendor-bin/behat/vendor/instaclick/php-webdriver/lib/WebDriver/Exception.php:144

It seems to be intermittent but happening when testing the user management page of the UI.

Most of the time each test scenario passes on a 2nd run. Sometimes the 2nd try fails and so we notice a I fail result.

Needs investigation.

@ownclouders
Copy link
Contributor

GitMate.io thinks possibly related issues are #22492 (test), #31579 (test), #22485 (test), #24121 (Clean/Fix exceptions when running integration tests), and #32842 (webUI test comments).

@phil-davis
Copy link
Contributor Author

@PVince81 I added this to the next sprint, because it is happening quite a lot.

@phil-davis
Copy link
Contributor Author

phil-davis commented Mar 8, 2019

@individual-it
Copy link
Member

looks like its working stable now.
to get rid of the sleep(1) we could check the style of the box.
when its hidden it is: display: none
image

During the transition is has a lot of other settings:
image

and when finished it only has display: block;
image

is it worth the effort?

@phil-davis
Copy link
Contributor Author

Having detailed knowledge of the "workflow" of styles, DOM elements,... baked into test code will make the tests more brittle when people adjust the styles of stuff. So maybe that will be just as annoying as having sleep(1)?

@individual-it
Copy link
Member

one could argue that its knowledge of how jQuery does the animation. But I agree, in this case a sleep(1) might be alright.
deleting the ToDo in the code with reference to this issue and closing the issue?

@phil-davis
Copy link
Contributor Author

owncloud-archive/user_management#170 removes the "ToDo"

@lock lock bot locked as resolved and limited conversation to collaborators Mar 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants