Olivier Massot 4 năm trước cách đây
mục cha
commit
dea79d06f0

+ 29 - 8
.gitlab-ci.yml

@@ -25,31 +25,52 @@ install:
     - yarn install --dev
     - npx cypress cache path
     - npx cypress cache list
+    - yarn ci & npx wait-on http://localhost:3004
 
 chrome:
   image: cypress/browsers:node14.17.0-chrome88-ff89
   stage: test
   script:
-    - yarn ci & npx wait-on http://localhost:3004
-    - yarn cypress:run --record --browser chrome --tag "Chrome"
+    - yarn cypress:run --browser chrome
+  artifacts:
+    when: always
+    paths:
+      - cypress/videos/**/*.mp4
+      - cypress/screenshots/**/*.png
+    expire_in: 3 day
 
 chrome-mobile:
   image: cypress/browsers:node14.17.0-chrome88-ff89
   stage: test
   script:
-    - yarn ci & npx wait-on http://localhost:3004
-    - yarn cypress:run --record --browser chrome --tag "Chrome - Mobile" --config "viewportWidth=375,viewportHeight=667"
+    - yarn cypress:run --browser chrome --config "viewportWidth=375,viewportHeight=667"
+  artifacts:
+    when: always
+    paths:
+      - cypress/videos/**/*.mp4
+      - cypress/screenshots/**/*.png
+    expire_in: 3 day
 
 firefox:
   image: cypress/browsers:node14.17.0-chrome88-ff89
   stage: test
   script:
-    - yarn ci & npx wait-on http://localhost:3004
-    - yarn cypress:run --record --browser firefox --tag "Firefox"
+    - yarn cypress:run --browser firefox
+  artifacts:
+    when: always
+    paths:
+      - cypress/videos/**/*.mp4
+      - cypress/screenshots/**/*.png
+    expire_in: 3 day
 
 firefox-mobile:
   image: cypress/browsers:node14.17.0-chrome88-ff89
   stage: test
   script:
-    - yarn ci & npx wait-on http://localhost:3004
-    - yarn cypress:run --record --browser firefox --tag "Firefox - Mobile" --config "viewportWidth=375,viewportHeight=667"
+    - yarn cypress:run --browser firefox --config "viewportWidth=375,viewportHeight=667"
+  artifacts:
+    when: always
+    paths:
+      - cypress/videos/**/*.mp4
+      - cypress/screenshots/**/*.png
+    expire_in: 3 day

+ 1 - 1
test/cypress/integration/structures/index.spec.js

@@ -2,7 +2,7 @@
 describe('Test the /structures page', () => {
   beforeEach(() => {
     cy.visit('/structures?parent=12097')
-    cy.contains('Nos Structures adhérentes', { timeout: 10000 })
+    cy.contains('Nos Structures adhérentes', { timeout: 6000 })
   })
 
   it('Map, filters, and all results shall display by default', () => {

+ 0 - 3
test/cypress/support/index.js

@@ -17,6 +17,3 @@
 import './commands'
 import './leaflet'
 import './vuetify'
-
-// Alternatively you can use CommonJS syntax:
-// require('./commands')