-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Playwright with Storybook for component tests in fast-foundation (#…
…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
- Loading branch information
Showing
136 changed files
with
11,523 additions
and
15,687 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Never lint test files | ||
*.spec.ts | ||
!*.pw.spec.ts | ||
|
||
# Never lint node_modules | ||
node_modules | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.spec.ts | ||
!*.pw.spec.ts | ||
*.spec.tsx | ||
**/__tests__ | ||
**/__test__ | ||
|
7 changes: 7 additions & 0 deletions
7
change/@microsoft-fast-element-46232efd-035f-48e7-8524-a2385961aaf0.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "make ElementsFilter type arguments optional", | ||
"packageName": "@microsoft/fast-element", | ||
"email": "[email protected]", | ||
"dependentChangeType": "prerelease" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@microsoft-fast-foundation-99df5d5a-e466-4042-b4b7-56b6ebd958b7.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Convert karma and mocha tests to playwright", | ||
"packageName": "@microsoft/fast-foundation", | ||
"email": "[email protected]", | ||
"dependentChangeType": "prerelease" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@microsoft-fast-ssr-07e30dc1-38a0-46ba-952a-3c6931a1a6ba.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "update playwright", | ||
"packageName": "@microsoft/fast-ssr", | ||
"email": "[email protected]", | ||
"dependentChangeType": "prerelease" | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
# don't ever lint node_modules | ||
node_modules | ||
# don't lint build output (make sure it's set to your correct build folder name) | ||
dist | ||
# don't lint coverage output | ||
coverage | ||
# don't lint tests | ||
*.spec.* | ||
# | ||
karma.conf.cjs | ||
dist | ||
node_modules | ||
*.spec.ts | ||
!*.pw.spec.ts |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
File renamed without changes.
1 change: 0 additions & 1 deletion
1
packages/web-components/fast-foundation/.storybook/package.json
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Oops, something went wrong.