Skip to content

Commit cd07550

Browse files
committed
refactor: cypress directory common and utils test method
1 parent 75f4799 commit cd07550

File tree

4 files changed

+4
-48
lines changed

4 files changed

+4
-48
lines changed

cypress/e2e/common/pageWhiteTest.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { visitH5Demo, visitTaroDemo } from '../utils/visit-demo.js'
1+
import { visitH5Demo, visitTaroDemo } from '../utils/visit-demo.cy.js'
22
import data from '../../../src/config.json'
33

44
const { nav } = data

cypress/e2e/h5/replace.js

Lines changed: 0 additions & 44 deletions
This file was deleted.
File renamed without changes.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@
9191
"publish:beta": "npm publish --tag beta",
9292
"test": "vitest --coverage",
9393
"test:ui": "vitest --ui --coverage",
94-
"cypress:run": "cypress run --env baseUrl=http://localhost:5173/react/demo.html#/zh-CN/component/ 'cypress/e2e/h5/index.cy.js'",
95-
"cypress:open": "cypress open --env baseUrl=http://localhost:5173/react/demo.html#/zh-CN/component/ 'cypress/e2e/h5/index.cy.js'",
96-
"cypress:run:taro": "cypress run --env baseUrl=http://localhost:10086/#/ 'cypress/e2e/taro/index.cy.js'",
94+
"cypress:run": "cypress run --env baseUrl=http://localhost:5173/react/demo.html#/zh-CN/component/ --spec 'cypress/e2e/h5/index.cy.js'",
95+
"cypress:open": "cypress open --env baseUrl=http://localhost:5173/react/demo.html#/zh-CN/component/ 'cypress/e2e/h5/index.cy.js'",
96+
"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'",
9898
"e2e:run:h5": "pnpm dev & pnpm cypress:run",
9999
"e2e:open:h5": "pnpm dev & pnpm cypress:open",

0 commit comments

Comments
 (0)