Skip to content

test(Select): add @avt tests#14380

Merged
tw15egan merged 3 commits into
carbon-design-system:mainfrom
tw15egan:select-avt
Aug 5, 2023
Merged

test(Select): add @avt tests#14380
tw15egan merged 3 commits into
carbon-design-system:mainfrom
tw15egan:select-avt

Conversation

@tw15egan

@tw15egan tw15egan commented Aug 2, 2023

Copy link
Copy Markdown
Contributor

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

netlify Bot commented Aug 2, 2023

Copy link
Copy Markdown

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

netlify Bot commented Aug 2, 2023

Copy link
Copy Markdown

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
Copy Markdown
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
@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