FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(ByRole): Allow filter by disabled state by eps1lon · Pull Request #1231 · testing-library/testing-library-docs · GitHub

feat(ByRole): Allow filter by disabled state - #1231

Open
eps1lon wants to merge 2 commits into
testing-library:mainfrom
eps1lon:feat/byrole-disabled
Open

feat(ByRole): Allow filter by disabled state#1231
eps1lon wants to merge 2 commits into
testing-library:mainfrom
eps1lon:feat/byrole-disabled

Conversation

eps1lon commented Mar 9, 2023
edited
Loading

Copy link
Copy Markdown
Member

netlify Bot commented Mar 9, 2023
edited
Loading

Copy link
Copy Markdown

Deploy Preview for testing-library ready!

Name Link
🔨 Latest commit 3268d1a
🔍 Latest deploy log https://app.netlify.com/sites/testing-library/deploys/6409b14f18e644000857d53c
😎 Deploy Preview https://deploy-preview-1231--testing-library.netlify.app
📱 Preview on mobile Toggle QR Code...



Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Comment thread docs/queries/byrole.mdx
<body>
<section>
<button disabled>Login</button>
<div role="alert" aria-disabled="false">Failed to login</button>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Having the aria-disabled here seems a bit confusing to me.
Are we also filtering by aria-disabled or just by the disabled attribute? I think that we should explain it here so people will have a clear understanding.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

We're filtering by things that are disabled according to the a11y tree. This applies to every filter option in ByRole.

This here includes examples.

How would you explain it do avoid confusions?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Comment thread docs/queries/byrole.mdx
</body>
```

you can get the "Login" button by calling

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
you can get the "Login" button by calling
You can get the "Login" button by calling `getByRole('button', { disabled: true })` and the alert by calling `getByRole('alert', { disabled: false })`.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL