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

Use Playwright with Storybook for component tests in fast-foundation #6189

Merged
merged 92 commits into from
Sep 19, 2022

Conversation

radium-v
Copy link
Collaborator

@radium-v radium-v commented Jul 7, 2022

Pull Request

πŸ“– Description

Converts the test suite in fast-foundation from Karma to Playwright.

🎫 Issues

Resolves #5805

πŸ‘©β€πŸ’» Reviewer Notes

The original approach was to make all tests async, and load individual pages for each test. Unfortunately, this ended up being extremely slow on the GH Actions pipeline, taking over 30 minutes to run tests in all three configured browsers. The tests are now rewritten in a synchronous way, which is more performant for CI environments (workers=1).

πŸ“‘ Test Plan

All tests should pass. Some tests report as flaky, which should be tracked as future issues. Additionally, these files have not yet been converted due to the Playwright environment not being able to handle decorators:

  • src/design-token/core/design-token-node.spec.ts
  • src/design-token/event-strategy.spec.ts
  • src/design-token/fast-design-token.spec.ts
  • src/directives/reflect-attributes.spec.ts
  • src/form-associated/form-associated.spec.ts

βœ… Checklist

General

  • I have included a change request file using $ yarn change
  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

⏭ Next Steps

  • Add documentation steps for running tests in a development environment
  • Add documentation for writing and debugging tests

@radium-v radium-v self-assigned this Jul 7, 2022
@radium-v radium-v force-pushed the users/jokreitl/foundation-playwright branch from 7ebf587 to 3923480 Compare July 11, 2022 17:35
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

@radium-v radium-v force-pushed the users/jokreitl/foundation-playwright branch from 3923480 to 1cbff46 Compare July 18, 2022 19:49
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

@radium-v radium-v force-pushed the users/jokreitl/foundation-playwright branch from 1cbff46 to 2ea7fc2 Compare July 19, 2022 20:54
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

@radium-v radium-v force-pushed the users/jokreitl/foundation-playwright branch from 2ea7fc2 to bd1448e Compare July 19, 2022 23:12
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

@radium-v radium-v force-pushed the users/jokreitl/foundation-playwright branch from bd1448e to 1e844bd Compare July 30, 2022 00:26
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

@radium-v radium-v force-pushed the users/jokreitl/foundation-playwright branch 2 times, most recently from 65e504a to b7a6e12 Compare August 2, 2022 01:01
@github-actions
Copy link

github-actions bot commented Aug 2, 2022

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

@radium-v radium-v force-pushed the users/jokreitl/foundation-playwright branch from b7a6e12 to 7f10a75 Compare August 2, 2022 01:09
@github-actions
Copy link

github-actions bot commented Aug 2, 2022

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

1 similar comment
@github-actions
Copy link

github-actions bot commented Aug 2, 2022

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

): string {
const params: Record<string, any> = { id };
if (args) {
params.args = qs

Choose a reason for hiding this comment

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

I don't know if I should comment here, but I tried something similar in my project. I think you could add a validation for the args in this method as Storybook does not allow specific characters in it's url. See here

This could help some developers who are going to use any of those characters in their arguments as they get a better error response.

Also, I just wanted to thank you for the great work on this PR. Really helped me a lot!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hi @sonntag-philipp, comments and contributions are always welcome!

I dug into the source for Storybook args a few days ago and unfortunately they don't have a function that we could import to validate the args I did some more searching and found the args validator, linked below. They do at least use qs, and they also apply some extra formatting in both the encoding and decoding of story args. Our method can definitely be improved to more closely match the expected behavior, which is handled in these files:

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

On further reading, it looks like the second link might not be as useful as I thought, since it requires us to pass the argTypes to validate that the args are correct.

Choose a reason for hiding this comment

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

Alright, thanks for the input on this. I think I'll just omit the validation within my own project as it's not going to be public.

Asking Storybook to expose a validation method would be the most future proof way I think - but you may already thought that too.

@radium-v radium-v force-pushed the users/jokreitl/foundation-playwright branch from 7f10a75 to 445da19 Compare August 9, 2022 22:46
@github-actions
Copy link

github-actions bot commented Aug 9, 2022

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

@radium-v radium-v force-pushed the users/jokreitl/foundation-playwright branch from 445da19 to 1c110b3 Compare August 11, 2022 00:44
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

@radium-v radium-v mentioned this pull request Aug 25, 2022
9 tasks
@radium-v radium-v force-pushed the users/jokreitl/foundation-playwright branch from 1c110b3 to 11fc46a Compare August 26, 2022 02:51
@github-actions
Copy link

github-actions bot commented Aug 26, 2022

πŸ“Š Tachometer Benchmark Results

Summary

clickTrigger10x

  • repeat-basic-splice-itemCount=1000&deleteCount=20&addCount=20: unsure πŸ” -2% - +4% (-3.54ms - +6.46ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-basic-splice-loopCount=1000&itemCount=1000&deleteCount=10&addCount=10: unsure πŸ” -2% - +1% (-3.07ms - +2.21ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-push-itemCount=100&addCount=20: unsure πŸ” -1% - +0% (-1.62ms - +0.77ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-push-loopCount=200&itemCount=200: unsure πŸ” -0% - +1% (-4.55ms - +64.96ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-reverse-itemCount=100: unsure πŸ” -1% - +1% (-3.46ms - +3.22ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-reverse-loopCount=200&itemCount=200: unsure πŸ” -1% - +2% (-64.33ms - +84.47ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-shift-itemCount=100: unsure πŸ” -0% - +1% (-0.37ms - +2.23ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-shift-loopCount=200&itemCount=200: unsure πŸ” -0% - +1% (-9.97ms - +41.00ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-unshift-itemCount=100&addCount=20: unsure πŸ” -2% - +0% (-6.37ms - +0.79ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-unshift-loopCount=200&itemCount=200&addCount=1: unsure πŸ” -0% - +3% (-8.26ms - +107.62ms)
    users/jokreitl/foundation-playwright vs master Customize summary

create10k

  • render-create10k: unsure πŸ” -1% - +2% (-3.11ms - +5.39ms)
    users/jokreitl/foundation-playwright vs master Customize summary

createDelete5x

  • render-createDelete5x: unsure πŸ” -1% - +1% (-3.56ms - +2.40ms)
    users/jokreitl/foundation-playwright vs master Customize summary

runFile1k

  • observable-runFile1k: slower ❌ 0% - 32% (0.09ms - 2.48ms)
    users/jokreitl/foundation-playwright vs master Customize summary

update10th

  • render-update10th: unsure πŸ” -3% - +1% (-4.95ms - +2.32ms)
    users/jokreitl/foundation-playwright vs master Customize summary

usedJSHeapSize

  • observable-runFile1k: faster βœ” 0% - 1% (0.02ms - 0.65ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • render-create10k: unsure πŸ” -0% - +0% (-0.00ms - +0.01ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • render-createDelete5x: unsure πŸ” -0% - +0% (-0.06ms - +0.03ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • render-update10th: unsure πŸ” -0% - +0% (-0.01ms - +0.01ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-basic-splice-itemCount=1000&deleteCount=20&addCount=20: unsure πŸ” -0% - +0% (-0.05ms - +0.02ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-basic-splice-loopCount=1000&itemCount=1000&deleteCount=10&addCount=10: unsure πŸ” -0% - +0% (-0.02ms - +0.02ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-push-itemCount=100&addCount=20: unsure πŸ” -0% - +0% (-0.06ms - +0.04ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-push-loopCount=200&itemCount=200: unsure πŸ” -0% - +0% (-0.04ms - +0.02ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-reverse-itemCount=100: unsure πŸ” -0% - +0% (-0.12ms - +0.11ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-reverse-loopCount=200&itemCount=200: unsure πŸ” -0% - +0% (-0.03ms - +0.01ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-shift-itemCount=100: unsure πŸ” -0% - +0% (-0.04ms - +0.07ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-shift-loopCount=200&itemCount=200: unsure πŸ” -0% - +0% (-0.02ms - +0.02ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-unshift-itemCount=100&addCount=20: unsure πŸ” -0% - +0% (-0.05ms - +0.08ms)
    users/jokreitl/foundation-playwright vs master Customize summary
  • repeat-nested-unshift-loopCount=200&itemCount=200&addCount=1: unsure πŸ” -0% - +0% (-0.02ms - +0.01ms)
    users/jokreitl/foundation-playwright vs master Customize summary

Results

observable-runFile1k

runFile1k

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master7.30ms - 8.88ms-faster βœ”
2% - 26%
0.09ms - 2.48ms
users/jokreitl/foundation-playwright8.48ms - 10.28msslower ❌
0% - 32%
0.09ms - 2.48ms
-

usedJSHeapSize

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master48.80ms - 49.21ms-slower ❌
0% - 1%
0.02ms - 0.65ms
users/jokreitl/foundation-playwright48.43ms - 48.91msfaster βœ”
0% - 1%
0.02ms - 0.65ms
-
render-create10k

create10k

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master240.86ms - 246.92ms-unsure πŸ”
-2% - +1%
-5.39ms - +3.11ms
users/jokreitl/foundation-playwright242.05ms - 248.01msunsure πŸ”
-1% - +2%
-3.11ms - +5.39ms
-

usedJSHeapSize

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master47.25ms - 47.26ms-unsure πŸ”
-0% - +0%
-0.01ms - +0.00ms
users/jokreitl/foundation-playwright47.26ms - 47.27msunsure πŸ”
-0% - +0%
-0.00ms - +0.01ms
-
render-createDelete5x

createDelete5x

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master311.44ms - 315.41ms-unsure πŸ”
-1% - +1%
-2.40ms - +3.56ms
users/jokreitl/foundation-playwright310.61ms - 315.07msunsure πŸ”
-1% - +1%
-3.56ms - +2.40ms
-

usedJSHeapSize

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master54.53ms - 54.59ms-unsure πŸ”
-0% - +0%
-0.03ms - +0.06ms
users/jokreitl/foundation-playwright54.52ms - 54.58msunsure πŸ”
-0% - +0%
-0.06ms - +0.03ms
-
render-update10th

update10th

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master190.84ms - 196.14ms-unsure πŸ”
-1% - +3%
-2.32ms - +4.95ms
users/jokreitl/foundation-playwright189.68ms - 194.66msunsure πŸ”
-3% - +1%
-4.95ms - +2.32ms
-

usedJSHeapSize

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master47.26ms - 47.27ms-unsure πŸ”
-0% - +0%
-0.01ms - +0.01ms
users/jokreitl/foundation-playwright47.26ms - 47.28msunsure πŸ”
-0% - +0%
-0.01ms - +0.01ms
-
repeat-basic-splice-itemCount=1000&deleteCount=20&addCount=20

clickTrigger10x

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master146.67ms - 154.43ms-unsure πŸ”
-4% - +2%
-6.46ms - +3.54ms
users/jokreitl/foundation-playwright148.86ms - 155.16msunsure πŸ”
-2% - +4%
-3.54ms - +6.46ms
-

usedJSHeapSize

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master46.37ms - 46.44ms-unsure πŸ”
-0% - +0%
-0.02ms - +0.05ms
users/jokreitl/foundation-playwright46.38ms - 46.40msunsure πŸ”
-0% - +0%
-0.05ms - +0.02ms
-
repeat-basic-splice-loopCount=1000&itemCount=1000&deleteCount=10&addCount=10

clickTrigger10x

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master188.69ms - 192.59ms-unsure πŸ”
-1% - +2%
-2.21ms - +3.07ms
users/jokreitl/foundation-playwright188.44ms - 191.99msunsure πŸ”
-2% - +1%
-3.07ms - +2.21ms
-

usedJSHeapSize

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master53.45ms - 53.48ms-unsure πŸ”
-0% - +0%
-0.02ms - +0.02ms
users/jokreitl/foundation-playwright53.45ms - 53.48msunsure πŸ”
-0% - +0%
-0.02ms - +0.02ms
-
repeat-nested-push-itemCount=100&addCount=20

clickTrigger10x

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master240.38ms - 242.49ms-unsure πŸ”
-0% - +1%
-0.77ms - +1.62ms
users/jokreitl/foundation-playwright240.46ms - 241.56msunsure πŸ”
-1% - +0%
-1.62ms - +0.77ms
-

usedJSHeapSize

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master51.82ms - 51.89ms-unsure πŸ”
-0% - +0%
-0.04ms - +0.06ms
users/jokreitl/foundation-playwright51.81ms - 51.89msunsure πŸ”
-0% - +0%
-0.06ms - +0.04ms
-
repeat-nested-push-loopCount=200&itemCount=200

clickTrigger10x

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master6274.15ms - 6319.99ms-unsure πŸ”
-1% - +0%
-64.96ms - +4.55ms
users/jokreitl/foundation-playwright6301.14ms - 6353.40msunsure πŸ”
-0% - +1%
-4.55ms - +64.96ms
-

usedJSHeapSize

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master91.53ms - 91.58ms-unsure πŸ”
-0% - +0%
-0.02ms - +0.04ms
users/jokreitl/foundation-playwright91.53ms - 91.56msunsure πŸ”
-0% - +0%
-0.04ms - +0.02ms
-
repeat-nested-reverse-itemCount=100

clickTrigger10x

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master380.59ms - 385.44ms-unsure πŸ”
-1% - +1%
-3.22ms - +3.46ms
users/jokreitl/foundation-playwright380.59ms - 385.19msunsure πŸ”
-1% - +1%
-3.46ms - +3.22ms
-

usedJSHeapSize

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master58.57ms - 58.74ms-unsure πŸ”
-0% - +0%
-0.11ms - +0.12ms
users/jokreitl/foundation-playwright58.58ms - 58.73msunsure πŸ”
-0% - +0%
-0.12ms - +0.11ms
-
repeat-nested-reverse-loopCount=200&itemCount=200

clickTrigger10x

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master5328.17ms - 5431.25ms-unsure πŸ”
-2% - +1%
-84.47ms - +64.33ms
users/jokreitl/foundation-playwright5336.13ms - 5443.44msunsure πŸ”
-1% - +2%
-64.33ms - +84.47ms
-

usedJSHeapSize

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master131.00ms - 131.03ms-unsure πŸ”
-0% - +0%
-0.01ms - +0.03ms
users/jokreitl/foundation-playwright130.99ms - 131.01msunsure πŸ”
-0% - +0%
-0.03ms - +0.01ms
-
repeat-nested-shift-itemCount=100

clickTrigger10x

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master217.41ms - 218.96ms-unsure πŸ”
-1% - +0%
-2.23ms - +0.37ms
users/jokreitl/foundation-playwright218.07ms - 220.16msunsure πŸ”
-0% - +1%
-0.37ms - +2.23ms
-

usedJSHeapSize

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master51.81ms - 51.88ms-unsure πŸ”
-0% - +0%
-0.07ms - +0.04ms
users/jokreitl/foundation-playwright51.83ms - 51.91msunsure πŸ”
-0% - +0%
-0.04ms - +0.07ms
-
repeat-nested-shift-loopCount=200&itemCount=200

clickTrigger10x

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master6142.81ms - 6179.13ms-unsure πŸ”
-1% - +0%
-41.00ms - +9.97ms
users/jokreitl/foundation-playwright6158.61ms - 6194.37msunsure πŸ”
-0% - +1%
-9.97ms - +41.00ms
-

usedJSHeapSize

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master90.94ms - 90.97ms-unsure πŸ”
-0% - +0%
-0.02ms - +0.02ms
users/jokreitl/foundation-playwright90.94ms - 90.97msunsure πŸ”
-0% - +0%
-0.02ms - +0.02ms
-
repeat-nested-unshift-itemCount=100&addCount=20

clickTrigger10x

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master296.00ms - 301.32ms-unsure πŸ”
-0% - +2%
-0.79ms - +6.37ms
users/jokreitl/foundation-playwright293.47ms - 298.26msunsure πŸ”
-2% - +0%
-6.37ms - +0.79ms
-

usedJSHeapSize

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master51.73ms - 51.82ms-unsure πŸ”
-0% - +0%
-0.08ms - +0.05ms
users/jokreitl/foundation-playwright51.75ms - 51.84msunsure πŸ”
-0% - +0%
-0.05ms - +0.08ms
-
repeat-nested-unshift-loopCount=200&itemCount=200&addCount=1

clickTrigger10x

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master3724.43ms - 3787.89ms-unsure πŸ”
-3% - +0%
-107.62ms - +8.26ms
users/jokreitl/foundation-playwright3757.37ms - 3854.32msunsure πŸ”
-0% - +3%
-8.26ms - +107.62ms
-

usedJSHeapSize

VersionAvg timevs mastervs users/jokreitl/foundation-playwright
master91.47ms - 91.48ms-unsure πŸ”
-0% - +0%
-0.01ms - +0.02ms
users/jokreitl/foundation-playwright91.45ms - 91.48msunsure πŸ”
-0% - +0%
-0.02ms - +0.01ms
-

tachometer-reporter-action v2 for Validate Benchmarks

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

@radium-v radium-v force-pushed the users/jokreitl/foundation-playwright branch from 11fc46a to e80f9a6 Compare August 26, 2022 19:08
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

@radium-v radium-v force-pushed the users/jokreitl/foundation-playwright branch from e80f9a6 to 4c146ff Compare August 31, 2022 00:52
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

1 similar comment
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://purple-ocean-0b7ce3410-6189.centralus.azurestaticapps.net

@radium-v radium-v merged commit ec2b158 into master Sep 19, 2022
@radium-v radium-v deleted the users/jokreitl/foundation-playwright branch September 19, 2022 17:40
janechu pushed a commit that referenced this pull request Jun 10, 2024
…6189)

* add playwright and remove karma from fast-foundation

* make ElementsFilter type arguments optional

* convert utilities tests to playwright

- Simplify whitespaceFilter and getDirection functions
- Add getDirection tests

* convert accordion tests to playwright

* convert accordion-item tests to playwright

* convert anchor tests to playwright

* convert anchored-region tests to playwright

* add slottedBreadcrumbItemFilter

- Add prev and next to slottedBreadcrumbItemsChanged method
- Add isBreadcrumbItem filter function

* convert breadcrumb tests to playwright

* convert breadcrumb-item tests to playwright

* mark formnovalidate as boolean attribute in button template

* convert breadcrumb-item tests to playwright

* convert button tests to playwright

* clean up extra spacing in checkbox template

* convert checkbox tests to playwright

* reset combobox value if no first selected option

* convert combobox tests to playwright

* allow cell templates to be SyntheticViewTemplate or string

* use lookup for data-grid-cell template role and class

* convert data-grid tests to playwright

* convert data-grid-row tests to playwright

* convert data-grid-cell tests to playwright

* convert dialog tests to playwright

* convert disclosure tests to playwright

* convert divider tests to playwright

* convert flipper tests to playwright

* convert horizontal-scroll tests to playwright

* convert listbox-option tests to playwright

* convert listbox tests to playwright

* menu should not navigate to hidden items when set after connection

* convert menu tests to playwright

* convert menu-item tests to playwright

* convert number-field tests to playwright

* convert progress tests to playwright

* convert progress-ring tests to playwright

* convert radiogroup tests to playwright

* convert radio tests to playwright

* convert search tests to playwright

* convert select tests to playwright

* ensure slider value is within min and max limits

* convert slider tests to playwright

* convert slider-label tests to playwright

* use whitespaceFilter with switch template

* convert switch tests to playwright

* convert tab tests to playwright

* convert tab-panel tests to playwright

* convert tabs tests to playwright

* convert text-area tests to playwright

* convert text-field tests to playwright

* convert toolbar tests to playwright

* convert tooltip tests to playwright

* add ARIA attributes to tree-item

* convert tree-item tests to playwright

* convert tree-view tests to playwright

* update api-report.md

* update lockfile

* Change files

* wip

* update playwright

* update api-report.md

* update imports

* menu tests

* tooltip tests

* text-area tests

* progress tests

* horizontal-scroll tests

* toolbar tests

* make dialog tests syncronous

* finish converting all tests to be synchronous

* remove attribute enumeration

* remove positioningRegion from radio-group

* fix flaky tree-item test

* ensure aria-expanded is only set when the tree-item has children

* simplify rewritten combobox form reset fix

* revert breadcrumb and breadcrumb item changes

* revert checkbox template changes

* use regex for toHaveClass assertions

* revert unrelated number-field changes

* remove unused import from radio-group template

* revert unrelated search template changes

* revert unrelated switch template changes

* revert unrelated text-area template changes

* revert unrelated text-field class and template changes

* revert unrelated tree-item and tree-view changes

* make tree-view tests synchronous

* revert unrelated radio-group changes

* revert unrelated search template changes

* revert unrelated text-field template changes

* update api-report and READMEs

* revert unrelated combobox changes

* revert unrelated data-grid-row template changes

* revert unrelated menu-item template changes
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.

feat: Use Playwright in conjunction with Storybook for component tests in fast-foundation
4 participants