فهرست منبع

test: fix cypress permission problem (#757)

走鹃 3 سال پیش
والد
کامیت
e23a30c9d8
2فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 5 3
      .github/workflows/cypress.yml
  2. 0 1
      cypress/integration/helloworld.spec.js

+ 5 - 3
.github/workflows/cypress.yml

@@ -21,7 +21,8 @@ on:
 jobs:
 jobs:
   install:
   install:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-    container: cypress/browsers:node16.5.0-chrome94-ff93
+    container: 
+      image: cypress/browsers:node14.16.0-chrome90-ff88
     if: ${{ github.repository_owner == 'DouyinFE' }}
     if: ${{ github.repository_owner == 'DouyinFE' }}
     steps:
     steps:
       - name: Checkout
       - name: Checkout
@@ -46,7 +47,8 @@ jobs:
           runTests: false
           runTests: false
   chrome-tests:
   chrome-tests:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-    container: cypress/browsers:node16.5.0-chrome94-ff93
+    container: 
+      image: cypress/browsers:node14.16.0-chrome90-ff88
     needs: install
     needs: install
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false
@@ -82,7 +84,7 @@ jobs:
   firefox-tests:
   firefox-tests:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     container: 
     container: 
-      image: cypress/browsers:node16.5.0-chrome94-ff93
+      image: cypress/browsers:node14.16.0-chrome90-ff88
       options: --user 1001
       options: --user 1001
     needs: install
     needs: install
     strategy:
     strategy:

+ 0 - 1
cypress/integration/helloworld.spec.js

@@ -4,7 +4,6 @@
 // If you're unfamiliar with how Cypress works,
 // If you're unfamiliar with how Cypress works,
 // check out the link below and learn how to write your first test:
 // check out the link below and learn how to write your first test:
 // https://on.cypress.io/writing-first-test
 // https://on.cypress.io/writing-first-test
-
 describe('hello world', () => {
 describe('hello world', () => {
     it('Does not do much!', () => {
     it('Does not do much!', () => {
         expect(true).to.equal(true);
         expect(true).to.equal(true);