9191 uses : actions/download-artifact@v4
9292 with :
9393 name : dist-test
94- path : dist
94+ path : dist-test
9595
9696 - name : Install dependencies
9797 if : steps.cache.outputs.cache-hit != 'true'
@@ -110,17 +110,14 @@ jobs:
110110 uses : cypress-io/github-action@v6
111111 with :
112112 install : false
113- start : npm run preview
114- wait-on : " http://localhost:8080"
115- wait-on-timeout : 120
113+ start : npm run preview:test
116114 browser : chrome
117115# https://github.com/languages-learner/web/issues/32 - Disable cypress logs because limit reached
118116# record: true
119117# parallel: true
120118# group: "E2E - Chrome"
121119 spec : cypress/e2e/*
122- config-file : cypress.config.ts
123- config : " {\" e2e\" :{\" baseUrl\" :\" http://localhost:8080\" }}"
120+ config-file : cypress/configs/preview.ts
124121 env :
125122 TEST_USER_USERNAME : ${{ secrets.TEST_USER_USERNAME_1 }}
126123 TEST_USER_PASSWORD : ${{ secrets.TEST_USER_PASSWORD_1 }}
@@ -131,6 +128,15 @@ jobs:
131128# COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha }}
132129# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
133130
131+ - name : Save cypress snapshots
132+ if : always()
133+ uses : actions/upload-artifact@v4
134+ with :
135+ name : e2e-chrome-cypress-snapshots
136+ path : |
137+ cypress/snapshots/actual
138+ cypress/snapshots/diff
139+
134140 e2e-chrome-mobile-tests :
135141 timeout-minutes : 5
136142 environment : manual_e2e_tests
@@ -165,7 +171,7 @@ jobs:
165171 uses : actions/download-artifact@v4
166172 with :
167173 name : dist-test
168- path : dist
174+ path : dist-test
169175
170176 - name : Install dependencies
171177 if : steps.cache.outputs.cache-hit != 'true'
@@ -184,17 +190,14 @@ jobs:
184190 uses : cypress-io/github-action@v6
185191 with :
186192 install : false
187- start : npm run preview
188- wait-on : " http://localhost:8080"
189- wait-on-timeout : 120
193+ start : npm run preview:test
190194 browser : chrome
191195# https://github.com/languages-learner/web/issues/32 - Disable cypress logs because limit reached
192196# record: true
193197# parallel: true
194198# group: "E2E - Chrome - Mobile"
195199 spec : cypress/e2e/*
196- config-file : cypress.config.ts
197- config : " {\" e2e\" :{\" baseUrl\" :\" http://localhost:8080\" ,\" viewportWidth\" :400,\" viewportHeight\" :660}}"
200+ config-file : cypress/configs/mobile.preview.ts
198201 env :
199202 TEST_USER_USERNAME : ${{ secrets.TEST_USER_USERNAME_2 }}
200203 TEST_USER_PASSWORD : ${{ secrets.TEST_USER_PASSWORD_2 }}
@@ -205,6 +208,15 @@ jobs:
205208# COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha }}
206209# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
207210
211+ - name : Save cypress snapshots
212+ if : always()
213+ uses : actions/upload-artifact@v4
214+ with :
215+ name : e2e-chrome-mobile-cypress-snapshots
216+ path : |
217+ cypress/snapshots/actual
218+ cypress/snapshots/diff
219+
208220 deploy_preview_website :
209221 timeout-minutes : 2
210222 environment : deploy_preview
0 commit comments