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

[bug] Flaky test: test_topology_graph #347

Open
nemesifier opened this issue Aug 16, 2024 · 0 comments
Open

[bug] Flaky test: test_topology_graph #347

nemesifier opened this issue Aug 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nemesifier
Copy link
Member

Describe the bug
We have another flaky test:

ERROR: test_topology_graph (__main__.TestServices)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/openwisp/docker-openwisp/tests/runtests.py", line 174, in test_topology_graph
    self.action_on_resource(label, path, 'update_selected')
  File "/opt/openwisp/docker-openwisp/tests/utils.py", line 180, in action_on_resource
    self.select_resource(name)
  File "/opt/openwisp/docker-openwisp/tests/utils.py", line 164, in select_resource
    driver.find_element(By.XPATH, path).click()
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 748, in find_element
    return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 354, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/errorhandler.py", line [22](https://github.com/openwisp/docker-openwisp/actions/runs/10424215459/job/28872566783?pr=344#step:9:23)9, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//a[contains(text(), "automated-selenium-test-02")]/../..//input[@name="_selected_action"]"}
  (Session info: chrome-headless-shell=1[27](https://github.com/openwisp/docker-openwisp/actions/runs/10424215459/job/28872566783?pr=344#step:9:28).0.6533.99); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception

Steps To Reproduce
Run make runtests. The test fails randomly.

Expected behavior
Test should always pass.

System Informatioon:
Observed in CI builds.

@nemesifier nemesifier added the bug Something isn't working label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To do (general)
Development

No branches or pull requests

1 participant