-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[core] Setup testing to work with CSS imports #17214
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
Merged
Merged
Changes from all commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
6f2c84a
build: setup vite for e2e & regressions
romgrk d09b7ec
build: package.json
romgrk a5e5081
lint
romgrk fa3f160
build: copy CSS files to output folders
romgrk 559dea0
build: mocha css import
romgrk 0a09c74
build: make test:karma work
romgrk 05ec5e4
lint
romgrk 4054d9a
build: lint
romgrk 69254d8
Update packages/x-internals/package.json
romgrk 4fd43c5
lint
romgrk 508ca16
build: x-internals
romgrk 529b675
build: fix regressions isReady()
romgrk c0036e6
build: fix code replace
romgrk 8c96681
lint
romgrk ae2e125
build: fix e2e timeout
romgrk c278a72
Merge branch 'master' into refactor-css-breaking-change
romgrk 7ef99cb
build: fix again
romgrk ec3f068
Merge branch 'master' into refactor-css-breaking-change
romgrk 0c609a4
test(regressions): move stuff around, fix fakeNow
romgrk 929ede7
lint
romgrk d575778
test(regressions): fix license issues [thanks to Lukas]
romgrk 9ac5267
refactor: remove proptypes
romgrk a27a497
lint
romgrk 1b41158
lint
romgrk 6387861
test(regressions): fix fake clocks [take 2]
romgrk 96b0769
lint: e2e_build => test_build
romgrk eaa8d11
lint
romgrk 86a8216
lint: @mui/system dev dependency
romgrk daf5a5f
lint
romgrk 97a6c94
lint
romgrk a22b2b6
lint
romgrk 0517866
Merge branch 'master' into refactor-css-breaking-change
romgrk 9a88d48
test(regressions): fix location/route
romgrk f608345
Merge branch 'master' into refactor-css-breaking-change
romgrk f91d64d
ci: run (empty commit)
romgrk 2ba9ac8
lint
romgrk 022817b
lint: move import index.css
romgrk 7208494
Update test/regressions/TestViewer.tsx
romgrk 0b9e5dd
Update test/regressions/index.test.ts
romgrk a75b461
lint
romgrk f6c4c9e
lint: currentDirectory => import.meta.dirname
romgrk 3ed3144
refactor: blacklist patterns to import.meta.glob
romgrk c0b8e46
lint
romgrk 171ccb2
ci: run (empty commit)
romgrk ccacbc6
Merge branch 'master' into refactor-css-breaking-change
romgrk 4c41181
Update test/regressions/TestViewer.tsx
romgrk 19e6d71
fix: revert import.meta.dirname in next.js config
romgrk 8921294
build: images
romgrk d52ae87
revert: "build: images" (circleci outage)
romgrk 590e171
ci: run (empty commit)
romgrk 4545d50
ci: run (empty commit)
romgrk 1bb53db
revert: "revert: "build: images" (circleci outage)"
romgrk 5a331c4
lint
romgrk f52a7eb
lint
romgrk d95a061
lint
romgrk 6662434
lint
romgrk b0bbd52
Merge branch 'master' into refactor-css-breaking-change
romgrk aa7a171
ci: run (empty commit)
romgrk cf0ae07
lint
romgrk e04c802
lint
romgrk 40e4483
build: remove pnpm caching
romgrk bb54095
deps: node types & netlify to 23.11.0
romgrk fb67673
lint
romgrk 13f59d5
lint
romgrk 6f7e7fd
ci: run (empty commit)
romgrk 5ce75c5
Merge branch 'master' into refactor-css-breaking-change
cherniavskii 03cbf92
pass isDataGridPivotTest
cherniavskii f72a797
Merge branch 'master' into refactor-css-breaking-change
LukasTy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -43,7 +43,7 @@ default-job: &default-job | |
COREPACK_ENABLE_DOWNLOAD_PROMPT: '0' | ||
working_directory: /tmp/mui | ||
docker: | ||
- image: cimg/node:20.19 | ||
- image: cimg/node:23.11 | ||
# CircleCI has disabled the cache across forks for security reasons. | ||
# Following their official statement, it was a quick solution, they | ||
# are working on providing this feature back with appropriate security measures. | ||
|
@@ -60,36 +60,27 @@ default-context: &default-context | |
commands: | ||
install_js: | ||
parameters: | ||
browsers: | ||
playwright: | ||
description: If playwright should be installed. | ||
type: boolean | ||
default: false | ||
description: 'Set to true if you intend to any browser (for example with playwright).' | ||
react-version: | ||
description: The version of React to use. | ||
type: string | ||
default: << pipeline.parameters.react-version >> | ||
description: The version of React to use. | ||
|
||
steps: | ||
- when: | ||
condition: << parameters.browsers >> | ||
steps: | ||
- run: | ||
name: Install pnpm package manager | ||
command: corepack enable | ||
- when: | ||
condition: | ||
not: << parameters.browsers >> | ||
steps: | ||
- run: | ||
name: Install pnpm package manager | ||
# See https://stackoverflow.com/a/73411601 | ||
command: corepack enable --install-directory ~/bin | ||
- run: | ||
name: Install pnpm package manager | ||
# See https://stackoverflow.com/a/73411601 | ||
command: corepack enable --install-directory ~/bin | ||
|
||
- run: | ||
name: View install environment | ||
command: | | ||
node --version | ||
pnpm --version | ||
|
||
- when: | ||
condition: | ||
equal: [stable, << parameters.react-version >>] | ||
|
@@ -118,6 +109,12 @@ commands: | |
- run: | ||
name: Install @mui/material v6 | ||
command: pnpm use-material-ui-v6 | ||
- when: | ||
condition: << parameters.playwright >> | ||
steps: | ||
- run: | ||
name: Install playwright | ||
command: pnpx [email protected] install --with-deps | ||
|
||
jobs: | ||
checkout: | ||
|
@@ -240,12 +237,10 @@ jobs: | |
|
||
test_browser: | ||
<<: *default-job | ||
docker: | ||
- image: mcr.microsoft.com/playwright:v1.51.1-noble | ||
steps: | ||
- checkout | ||
- install_js: | ||
browsers: true | ||
playwright: true | ||
react-version: << parameters.react-version >> | ||
- run: | ||
name: Tests real browsers | ||
|
@@ -272,41 +267,35 @@ jobs: | |
NODE_OPTIONS: --max-old-space-size=3584 | ||
test_e2e: | ||
<<: *default-job | ||
docker: | ||
- image: mcr.microsoft.com/playwright:v1.51.1-noble | ||
steps: | ||
- checkout | ||
- install_js: | ||
browsers: true | ||
playwright: true | ||
react-version: << parameters.react-version >> | ||
- run: | ||
name: Run e2e tests | ||
command: pnpm test:e2e | ||
test_e2e_website: | ||
<<: *default-job | ||
docker: | ||
- image: mcr.microsoft.com/playwright:v1.51.1-noble | ||
steps: | ||
- checkout | ||
- install_js: | ||
browsers: true | ||
playwright: true | ||
- run: | ||
name: pnpm test:e2e-website | ||
command: pnpm test:e2e-website | ||
environment: | ||
PLAYWRIGHT_TEST_BASE_URL: << parameters.e2e-base-url >> | ||
test_regressions: | ||
<<: *default-job | ||
docker: | ||
- image: mcr.microsoft.com/playwright:v1.51.1-noble | ||
steps: | ||
- checkout | ||
- install_js: | ||
browsers: true | ||
playwright: true | ||
react-version: << parameters.react-version >> | ||
- run: | ||
name: Install ffmpeg | ||
command: apt update && apt upgrade -y && apt install ffmpeg -y | ||
command: sudo apt update && sudo apt upgrade -y && sudo apt install ffmpeg -y | ||
- run: | ||
name: Run visual regression tests | ||
command: xvfb-run pnpm test:regressions | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.