Skip to content

Commit 88a4c6e

Browse files
committed
fix: re
1 parent aa13e8b commit 88a4c6e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cypress.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ export default defineConfig({
44
e2e: {
55
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
66
},
7-
viewportWidth: 414,
8-
viewportHeight: 896,
7+
viewportWidth: 375,
8+
viewportHeight: 667,
99
})

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@
9595
"cypress:open": "cypress open --env baseUrl=http://localhost:5173/react/demo.html#/zh-CN/component/ 'cypress/e2e/h5/index.cy.js'",
9696
"cypress:run:taro": "cypress run --env baseUrl=http://localhost:10086/#/ --spec 'cypress/e2e/taro/index.cy.js'",
9797
"cypress:open:taro": "cypress open --env baseUrl=http://localhost:10086/#/ 'cypress/e2e/taro/index.cy.js'",
98-
"e2e:run:h5": "pnpm dev & pnpm cypress:run",
99-
"e2e:open:h5": "pnpm dev & pnpm cypress:open",
98+
"e2e:run:h5": "start-server-and-test dev http://localhost:5173/ cypress:run",
99+
"e2e:open:h5": "start-server-and-test dev http://localhost:5173/ cypress:open",
100100
"e2e:run:taro": "start-server-and-test dev:taro:h5 http://localhost:10086 cypress:run:taro",
101101
"e2e:open:taro": "start-server-and-test dev:taro:h5 http://localhost:10086 cypress:open:taro",
102102
"update:taro:entry": "node ./scripts/rn/update-taro-entry",

0 commit comments

Comments
 (0)