Skip to content

Commit

Permalink
refactor: cypress directory common and utils test method
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-huxiyang committed Dec 10, 2024
1 parent 75f4799 commit cd07550
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 48 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/common/pageWhiteTest.cy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { visitH5Demo, visitTaroDemo } from '../utils/visit-demo.js'
import { visitH5Demo, visitTaroDemo } from '../utils/visit-demo.cy.js'
import data from '../../../src/config.json'

const { nav } = data
Expand Down
44 changes: 0 additions & 44 deletions cypress/e2e/h5/replace.js

This file was deleted.

File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@
"publish:beta": "npm publish --tag beta",
"test": "vitest --coverage",
"test:ui": "vitest --ui --coverage",
"cypress:run": "cypress run --env baseUrl=http://localhost:5173/react/demo.html#/zh-CN/component/ 'cypress/e2e/h5/index.cy.js'",
"cypress:open": "cypress open --env baseUrl=http://localhost:5173/react/demo.html#/zh-CN/component/ 'cypress/e2e/h5/index.cy.js'",
"cypress:run:taro": "cypress run --env baseUrl=http://localhost:10086/#/ 'cypress/e2e/taro/index.cy.js'",
"cypress:run": "cypress run --env baseUrl=http://localhost:5173/react/demo.html#/zh-CN/component/ --spec 'cypress/e2e/h5/index.cy.js'",
"cypress:open": "cypress open --env baseUrl=http://localhost:5173/react/demo.html#/zh-CN/component/ 'cypress/e2e/h5/index.cy.js'",
"cypress:run:taro": "cypress run --env baseUrl=http://localhost:10086/#/ --spec 'cypress/e2e/taro/index.cy.js'",
"cypress:open:taro": "cypress open --env baseUrl=http://localhost:10086/#/ 'cypress/e2e/taro/index.cy.js'",
"e2e:run:h5": "pnpm dev & pnpm cypress:run",
"e2e:open:h5": "pnpm dev & pnpm cypress:open",
Expand Down

0 comments on commit cd07550

Please sign in to comment.