From 10fd714341e530b6cecd7f1e41b2935e5a899aaa Mon Sep 17 00:00:00 2001 From: Sam Chen Date: Fri, 23 Sep 2022 18:44:45 +0800 Subject: [PATCH] CI: running e2e tests with Chrome (#6415) * upgrade cypress * use chrome for e2e test * run in chrome --- .github/workflows/testing.yml | 1 + package.json | 4 ++-- yarn.lock | 18 +++++++++--------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 60cf0ee24652..75cdb9529f49 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -116,6 +116,7 @@ jobs: - name: Cypress run uses: cypress-io/github-action@v4 with: + browser: chrome config-file: cypress.config.js build: yarn build start: yarn serve-dist diff --git a/package.json b/package.json index 3786d8616c2d..8334e747a36d 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "printable": "node ./src/scripts/concatenate-docs.mjs", "jest": "NODE_OPTIONS=--experimental-vm-modules jest --config=jest.config.mjs", "cypress:open": "cypress open", - "cypress:run": "cypress run", + "cypress:run": "cypress run --browser chrome", "prettier": "prettier --write '**/*.{js,json,jsx,css,scss,md,mdx}'", "prepare": "husky install && rimraf ./node_modules/.cache/webpack && yarn-deduplicate --strategy fewer" }, @@ -85,7 +85,7 @@ "copy-webpack-plugin": "^11.0.0", "css-loader": "^6.7.1", "css-minimizer-webpack-plugin": "^4.1.0", - "cypress": "^10.7.0", + "cypress": "^10.8.0", "directory-tree": "^3.3.1", "directory-tree-webpack-plugin": "^1.0.3", "duplexer": "^0.1.1", diff --git a/yarn.lock b/yarn.lock index 26958b7e9586..7007027c8cca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4263,10 +4263,10 @@ csstype@^3.0.6: resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.0.6.tgz#865d0b5833d7d8d40f4e5b8a6d76aea3de4725ef" integrity sha512-+ZAmfyWMT7TiIlzdqJgjMb7S4f1beorDbWbsocyK4RaiqA5RTX3K14bnBWmmA9QEM0gRdsjyyrEmcyga8Zsxmw== -cypress@^10.7.0: - version "10.7.0" - resolved "https://registry.yarnpkg.com/cypress/-/cypress-10.7.0.tgz#2d37f8b9751c6de33ee48639cb7e67a2ce593231" - integrity sha512-gTFvjrUoBnqPPOu9Vl5SBHuFlzx/Wxg/ZXIz2H4lzoOLFelKeF7mbwYUOzgzgF0oieU2WhJAestQdkgwJMMTvQ== +cypress@^10.8.0: + version "10.8.0" + resolved "https://registry.yarnpkg.com/cypress/-/cypress-10.8.0.tgz#12a681f2642b6f13d636bab65d5b71abdb1497a5" + integrity sha512-QVse0dnLm018hgti2enKMVZR9qbIO488YGX06nH5j3Dg1isL38DwrBtyrax02CANU6y8F4EJUuyW6HJKw1jsFA== dependencies: "@cypress/request" "^2.88.10" "@cypress/xvfb" "^1.2.4" @@ -4287,7 +4287,7 @@ cypress@^10.7.0: dayjs "^1.10.4" debug "^4.3.2" enquirer "^2.3.6" - eventemitter2 "^6.4.3" + eventemitter2 "6.4.7" execa "4.1.0" executable "^4.1.1" extract-zip "2.0.1" @@ -5145,10 +5145,10 @@ eval@^0.1.0, eval@^0.1.5: dependencies: require-like ">= 0.1.1" -eventemitter2@^6.4.3: - version "6.4.4" - resolved "https://registry.yarnpkg.com/eventemitter2/-/eventemitter2-6.4.4.tgz#aa96e8275c4dbeb017a5d0e03780c65612a1202b" - integrity sha512-HLU3NDY6wARrLCEwyGKRBvuWYyvW6mHYv72SJJAH3iJN3a6eVUvkjFkcxah1bcTgGVBBrFdIopBJPhCQFMLyXw== +eventemitter2@6.4.7: + version "6.4.7" + resolved "https://registry.yarnpkg.com/eventemitter2/-/eventemitter2-6.4.7.tgz#a7f6c4d7abf28a14c1ef3442f21cb306a054271d" + integrity sha512-tYUSVOGeQPKt/eC1ABfhHy5Xd96N3oIijJvN3O9+TsC28T5V9yX9oEfEK5faP0EFSNVOG97qtAS68GBrQB2hDg== eventemitter3@^4.0.0: version "4.0.7"