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

Fixed dashboard cypress tests #8892

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GilbertCherrie
Copy link
Member

@GilbertCherrie GilbertCherrie commented Aug 10, 2023

Once simulate_queue_worker is enabled for cypress tests the dashboard widgets get more buttons which breaks the current tests. @Fryguy Once we enable simulate_queue_worker in the github actions environment then we should merge this pr to fix the dashboard tests.
The new buttons added to the widget "Full Screen" and "Print or export to PDF" can't be tested as far as I am aware. This is because both of these buttons open a page in a new tab and Cypress does not support testing in other tabs. There is ways to override a link from opening in a new tab when using the html element but since we are using buttons that open a new tab we can't override this behaviour.

@miq-bot
Copy link
Member

miq-bot commented Aug 10, 2023

Checked commit GilbertCherrie@982cb9c with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
0 files checked, 0 offenses detected
Everything looks fine. 🍰

Copy link
Member

@Fryguy Fryguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - will wait until we get in the simulate_queue_worker change. (Though it is curious that the UI changes at all whether workers are running or not - we should investigate that separately)

@GilbertCherrie
Copy link
Member Author

Looks good - will wait until we get in the simulate_queue_worker change. (Though it is curious that the UI changes at all whether workers are running or not - we should investigate that separately)

This has to do with this screen which requires the simulate_queue_worker to generate the report preview.
Screenshot 2023-08-14 at 7 48 02 AM

Also for the dashboard once it runs simulate_queue_worker it updates the widgets from empty widgets to chart / table widgets that contain no data but have slightly different actions in the widget toolbar buttons.

@jeffibm
Copy link
Member

jeffibm commented Nov 6, 2023

Hey @Fryguy , and @GilbertCherrie , can we merge this?

@GilbertCherrie
Copy link
Member Author

@jeffibm No we can't merge this yet as it relies on simulate_queue_worker to be enabled in the cypress environment or else these tests will fail.

@miq-bot
Copy link
Member

miq-bot commented Feb 19, 2024

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

@miq-bot miq-bot added the stale label Feb 19, 2024
@miq-bot
Copy link
Member

miq-bot commented May 20, 2024

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants