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

test(ui-tray): migrate old Tray tests #1844

Merged

Conversation

git-nandor
Copy link
Contributor

No description provided.

@git-nandor git-nandor self-assigned this Jan 13, 2025
@git-nandor git-nandor requested review from ToMESSKa and balzss January 13, 2025 13:19
Copy link

github-actions bot commented Jan 13, 2025

PR Preview Action v1.6.0
Preview removed because the pull request was closed.
2025-02-05 08:50 UTC


cy.get('[aria-label="Tray Example"]').as('tray')

cy.get('@tray').realPress('Escape')
Copy link
Contributor

@ToMESSKa ToMESSKa Jan 14, 2025

Choose a reason for hiding this comment

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

The original test has a focus check on the tray before pressing the Esc key, which I don't see here.

Copy link
Contributor

Choose a reason for hiding this comment

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

good catch but the Tray should close on escape whether it contains the focus or not so I think it's better to leave it out. maybe a separate test could be added to check with the shouldContainFocus prop set to true and some tabbing if it keeps the focus or not but that's out of scope for this PR


cy.get('[aria-label="Tray Example"]').as('tray')

cy.get('@tray').realPress('Escape')
Copy link
Contributor

Choose a reason for hiding this comment

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

good catch but the Tray should close on escape whether it contains the focus or not so I think it's better to leave it out. maybe a separate test could be added to check with the shouldContainFocus prop set to true and some tabbing if it keeps the focus or not but that's out of scope for this PR

@git-nandor git-nandor force-pushed the INSTUI-4424_convert_ui-tray_to_the_new_test_format branch from ffd0bcb to b6c6331 Compare February 4, 2025 11:38
@git-nandor git-nandor requested a review from ToMESSKa February 4, 2025 21:15
@git-nandor git-nandor merged commit 970075c into master Feb 5, 2025
10 of 11 checks passed
@git-nandor git-nandor deleted the INSTUI-4424_convert_ui-tray_to_the_new_test_format branch February 5, 2025 08:50
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.

3 participants