Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Pull request suggestions #54

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

Merged
merged 4 commits into from
Nov 12, 2021

Conversation

koddsson
Copy link
Contributor

No description provided.

@koddsson koddsson requested a review from a team as a code owner November 12, 2021 14:11

triggerInput(input, 'hub')
await once(container, 'loadend')
await once(container, 'sr-update')
await waitForElementToChange(feedback)
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

Copy link
Contributor

@inkblotty inkblotty left a comment

Choose a reason for hiding this comment

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

Sure. Let's go 🚀

By inlining the screen reader announcement text we remove a layer of
indirection.
The event fired has no effect in production which indicates that it
shouldn't be in the code at all. What we want to do in the tests is to
wait for the feedback element to have text so we should instead use a
MutationObserver to wait for the element to change before running our
assertion.
We remove a level of indirection by inlining the list box ID. It's more
apparent to the reader of the tests what elements are being referred to
without having to find the definition of the `listboxId` variable.
@inkblotty inkblotty force-pushed the pull-request-suggestions branch from b609be8 to 35dc743 Compare November 12, 2021 15:05
@inkblotty inkblotty merged commit 0955f2c into feature/handle-sr-feedback Nov 12, 2021
@inkblotty inkblotty deleted the pull-request-suggestions branch November 12, 2021 15:07
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