浏览代码

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:
   install:
     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' }}
     steps:
       - name: Checkout
@@ -46,7 +47,8 @@ jobs:
           runTests: false
   chrome-tests:
     runs-on: ubuntu-latest
-    container: cypress/browsers:node16.5.0-chrome94-ff93
+    container: 
+      image: cypress/browsers:node14.16.0-chrome90-ff88
     needs: install
     strategy:
       fail-fast: false
@@ -82,7 +84,7 @@ jobs:
   firefox-tests:
     runs-on: ubuntu-latest
     container: 
-      image: cypress/browsers:node16.5.0-chrome94-ff93
+      image: cypress/browsers:node14.16.0-chrome90-ff88
       options: --user 1001
     needs: install
     strategy:

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

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