In integration tests loading a new page interferes with dropdown opening

Bug #1594926 reported by Timur Sufiev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Timur Sufiev

Bug Description

The following scenario has been seen many times in failed integration tests: all test actions are completed successfully, then test cleanup method goes to home page, and tries to log out - which fails, because the test clicks User dropdown menu (in upper right corner) too quickly, before the dropdown constructors have been finished by bootstrap JS - so the dropdown which contains Log Out link never opens.

This sometimes happens not only with log out link (if that was true, we could simply workaround it), but for some other dropdowns as well, but the failure rate with other dropdowns is lower - simply because they operated less frequently than Log Out link (which is present in every test).

The desired solution here is to wait until dropdowns become truly clickable.

Revision history for this message
Timur Sufiev (tsufiev-x) wrote :
Changed in horizon:
assignee: nobody → Timur Sufiev (tsufiev-x)
importance: Undecided → High
Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

Setting to High as the issue is currently the main contributor to intermittent integration test failures.

Changed in horizon:
status: New → In Progress
Timur Sufiev (tsufiev-x)
Changed in horizon:
milestone: none → newton-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/330203
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=fe04af039f369bfeb71ca2c51301dde5711ca20b
Submitter: Jenkins
Branch: master

commit fe04af039f369bfeb71ca2c51301dde5711ca20b
Author: Timur Sufiev <email address hidden>
Date: Wed Jun 15 23:44:50 2016 +0300

    Fix dropdowns sometimes not opening in integration tests

    Since most probable cause of dropdowns not opening intermittently is
    Bootstrap initialization code not having enough time to complete
    before test tries to open dropdown, make test wait a specified timeout
    before clicking it (by means of setting a CSS class after that
    timeout, which test in turn waits before clicking the dropdown).

    Closes-Bug: #1594926
    Change-Id: I32625caa4433f4af0de72c94b61e85ab4e16b1f9

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/horizon 10.0.0.0b2

This issue was fixed in the openstack/horizon 10.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.