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(Select): add @avt tests #14380

Merged
merged 3 commits into from
Aug 5, 2023
Merged

Conversation

tw15egan
Copy link
Member

@tw15egan tw15egan commented Aug 2, 2023

Closes #14368

Adds in AVT test for Select as well as some basic keyboard tests

Changelog

New

  • Select-test.avt.e2e.js

Changed

  • Moved AVT tests to .avt file

Removed

  • Removed wrapper around SelectSkeleton story that was causing an a11y violation

Testing / Reviewing

Ensure all tests pass and keyboard coverage is sufficient

@netlify
Copy link

netlify bot commented Aug 2, 2023

Deploy Preview for carbon-components-react ready!

Name Link
🔨 Latest commit d56beb1
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/64ce6cb8ffc1b20008c1f515
😎 Deploy Preview https://deploy-preview-14380--carbon-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@netlify
Copy link

netlify bot commented Aug 2, 2023

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit d56beb1
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/64ce6cb8ccb761000822210a
😎 Deploy Preview https://deploy-preview-14380--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

await expect(select).toBeFocused();
await expect(select).toHaveValue('');
// Select Option 4
await select.selectOption('option-4');
Copy link
Member

Choose a reason for hiding this comment

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

Nice! I didn't know Playwright had this built into the API

@tw15egan tw15egan added this pull request to the merge queue Aug 4, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 4, 2023
@tw15egan tw15egan enabled auto-merge August 5, 2023 15:37
@tw15egan tw15egan added this pull request to the merge queue Aug 5, 2023
Merged via the queue into carbon-design-system:main with commit 55bb7f3 Aug 5, 2023
14 checks passed
@tw15egan tw15egan deleted the select-avt branch August 5, 2023 16:33
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.

Add AVT coverage for Select states: Hover/Active/Visited state
3 participants