-
Notifications
You must be signed in to change notification settings - Fork 101
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
test(ui-tray): migrate old Tray tests #1844
Conversation
|
|
||
cy.get('[aria-label="Tray Example"]').as('tray') | ||
|
||
cy.get('@tray').realPress('Escape') |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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
ffd0bcb
to
b6c6331
Compare
No description provided.