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

Fix spurious failures in case_17_lock_hide_features.js #7742

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

SpecLad
Copy link
Contributor

@SpecLad SpecLad commented Apr 8, 2024

Motivation and context

#7654 changed the sidebar layout in such a way that mousing over the "Switch hidden property" button for an object can show a tooltip that obscures the "Switch hidden property for all" button. This is exactly what happens in this test at the end of the "Go to polygon" section.

The test is supposed to work around this, by hiding the tooltips before each section, but the workaround is insufficiently robust. Sometimes, the workaround executes before the tooltip is shown, so it does nothing. Then the tooltip appears and covers up the "Switch hidden property for all" button. Then the next section tries to click this button, and fails.

Fix this by taking another workaround from issue_2485_navigation_empty_frames.js, moving it into the hideTooltips command, and then using that command in case_17_lock_hide_features.js.

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • [ ] I have created a changelog fragment
  • [ ] I have updated the documentation accordingly
  • [ ] I have added tests to cover my changes
  • [ ] I have linked related issues (see GitHub docs)
  • [ ] I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

69682f2 changed the sidebar layout in such a way that mousing over the
"Switch hidden property" button for an object can show a tooltip that
obscures the "Switch hidden property for all" button. This is exactly what
happens in this test.

The test is supposed to work around this, by hiding the tooltips before each
section, but the workaround is insufficiently robust, because it can fire
before the tooltip is shown.

Fix this by taking another workaround from
`issue_2485_navigation_empty_frames.js`, moving it into the `hideTooltips`
command, and then using that command in `case_17_lock_hide_features.js`.
@SpecLad SpecLad requested a review from bsekachev April 8, 2024 16:20
@SpecLad SpecLad requested a review from azhavoro as a code owner April 8, 2024 16:20
@bsekachev bsekachev merged commit 1355725 into cvat-ai:develop Apr 10, 2024
32 checks passed
@SpecLad SpecLad deleted the hide-tooltips branch April 10, 2024 12:27
bargav25 pushed a commit to bargav25/cvat that referenced this pull request Apr 10, 2024
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.

2 participants