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

Joy playwright component tests #24

Merged
merged 33 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
601f603
Install playwright
ilbrando Nov 10, 2024
51774f5
remove playwright-report folder
ilbrando Nov 10, 2024
ba99d71
Update gitignore
ilbrando Nov 10, 2024
dbeb42d
simple-form-joy: Setup playwright component test
ilbrando Nov 13, 2024
5c6652f
Works in cli and in cli ui
ilbrando Nov 17, 2024
a517bef
Validate form state value
ilbrando Nov 17, 2024
d4f69b4
More genric way to set fm.onChange in tests
ilbrando Nov 17, 2024
4257b7a
Update playwright to 1.49.0
ilbrando Nov 19, 2024
ffddba2
Some tests for FormText component
ilbrando Nov 19, 2024
1b397d4
Test FormText renders error message
ilbrando Nov 21, 2024
0d2b5f0
FormTextTestComponent
ilbrando Nov 23, 2024
540d64b
FormText test for render error message (playwright fails)
ilbrando Nov 24, 2024
c8dd8b8
Rush change
ilbrando Nov 24, 2024
cf8d53c
Update vite to 5.4.11
ilbrando Nov 25, 2024
53eea51
FormNumber test
ilbrando Nov 25, 2024
a6af43d
Rename fields in TestFormFields
ilbrando Nov 25, 2024
934b3f2
Don't require all fields for formOptions prop on FormTextTestComponent
ilbrando Dec 3, 2024
92ac362
Fix unused import
ilbrando Dec 3, 2024
094bbef
FormCheckbox test
ilbrando Dec 4, 2024
399a2ed
Fix playwright props to test components
ilbrando Dec 4, 2024
ba8133a
FormSwitch test
ilbrando Dec 4, 2024
fdbf4e1
Move rush change to end of pipeline so other validations can run befo…
ilbrando Dec 4, 2024
3a0eb7f
Update node to version 22 in pipelines
ilbrando Dec 4, 2024
593e422
Downgrading node to version 20 in pipelines
ilbrando Dec 4, 2024
7f66ec8
Add vite react plugin to playwright-ct.config.ts removes build warnings
ilbrando Dec 4, 2024
b8e4ffc
Install playwright in ci pipeline
ilbrando Dec 5, 2024
995fb78
FormRadioGroup test
ilbrando Dec 5, 2024
0a6800a
Rename form-utils to use-test-form
ilbrando Dec 5, 2024
e84710d
FormRangeSlider test
ilbrando Dec 5, 2024
7134324
FormAutocomplete test
ilbrando Dec 6, 2024
1777900
FormAutocompleteMultiple test
ilbrando Dec 6, 2024
c7d9450
Rush change
ilbrando Dec 6, 2024
fa69e21
Fix eslint errors
ilbrando Dec 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ jobs:
fetch-depth: 2
- uses: actions/setup-node@v3
with:
node-version: 21
- name: Verify Change Logs
run: node common/scripts/install-run-rush.js change --verify
node-version: 20
- name: Rush install
run: node common/scripts/install-run-rush.js install
- name: Rush rebuild
run: node common/scripts/install-run-rush.js rebuild --verbose
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Rush test
run: node common/scripts/install-run-rush.js test
- name: Rush eslint
run: node common/scripts/install-run-rush.js eslint
- name: Verify Change Logs
run: node common/scripts/install-run-rush.js change --verify
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
email: "[email protected]"
- uses: actions/setup-node@v3
with:
node-version: 21
node-version: 20
- name: Rush install
run: node common/scripts/install-run-rush.js install
- name: Rush rebuild
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,8 @@ common/autoinstallers/*/.npmrc
**/lib
**/.rollup.cache/
*storybook.log
storybook-static
storybook-static
test-results/
playwright-report/
playwright/.cache/
/blob-report/
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "streetsidesoftware.code-spell-checker", "vitest.explorer"]
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "streetsidesoftware.code-spell-checker", "vitest.explorer", "ms-playwright.playwright"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@ilbrando/simple-form-joy",
"comment": "Component tests",
"type": "patch"
}
],
"packageName": "@ilbrando/simple-form-joy"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@ilbrando/simple-form-joy",
"comment": "Component tests",
"type": "patch"
}
],
"packageName": "@ilbrando/simple-form-joy"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@ilbrando/simple-form-material-ui",
"comment": "Component tests",
"type": "patch"
}
],
"packageName": "@ilbrando/simple-form-material-ui"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@ilbrando/simple-form",
"comment": "Update vite",
"type": "patch"
}
],
"packageName": "@ilbrando/simple-form"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@ilbrando/utils",
"comment": "Object utils",
"type": "patch"
}
],
"packageName": "@ilbrando/utils"
}
7 changes: 7 additions & 0 deletions common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@
"enableParallelism": true,
"ignoreMissingScript": true
},
{
"commandKind": "bulk",
"name": "test-ui",
"summary": "Run unit tests. Component tests are run in UI mode.",
"enableParallelism": true,
"ignoreMissingScript": true
},
{
"commandKind": "bulk",
"name": "eslint",
Expand Down
Loading
Loading