File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 # Make sure to grab the latest version of the Playwright image
1616 # https://playwright.dev/docs/docker#pull-the-image
1717 image : mcr.microsoft.com/playwright:v1.56.1-noble
18+ strategy :
19+ fail-fast : false
20+ matrix :
21+ browser : [chromium, firefox, webkit]
1822 defaults :
1923 run :
2024 working-directory : ./frontend-v2
3337
3438 - name : Run tests
3539 run : yarn test-storybook
40+ env :
41+ VITE_BROWSER : ${{ matrix.browser }}
42+ HOME : /root
Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ const proxy = {
3434
3535// https://vitejs.dev/config/
3636export default ( { mode } ) => {
37- const { VITE_APP_GA_ID } = loadEnv ( mode , process . cwd ( ) ) ;
37+ const { VITE_APP_GA_ID , VITE_BROWSER = "chromium" } = loadEnv (
38+ mode ,
39+ process . cwd ( ) ,
40+ ) ;
3841 const radarOptions = {
3942 enableDev : true ,
4043 analytics : {
@@ -94,7 +97,7 @@ export default ({ mode }) => {
9497 enabled : true ,
9598 headless : true ,
9699 provider : playwright ( ) ,
97- instances : [ { browser : "chromium" } ] ,
100+ instances : [ { browser : VITE_BROWSER } ] ,
98101 } ,
99102 setupFiles : [ ".storybook/vitest.setup.ts" ] ,
100103 retry : 2 ,
You can’t perform that action at this time.
0 commit comments