提交 53d21dd9 编写于 作者: Anne_LXM's avatar Anne_LXM

test:testSequencer.js

上级 08be55a3
describe('pages/validate-demo/add.vue', () => { describe('pages/validate-demo/add.vue', () => {
let page let page
beforeAll(async () => { beforeAll(async () => {
// 重新reLaunch至首页,并获取首页page对象(其中 program 是uni-automator自动注入的全局对象)
page = await program.reLaunch('/pages/validate-demo/add') page = await program.reLaunch('/pages/validate-demo/add')
await page.waitFor('view') await page.waitFor('view')
}) })
...@@ -13,7 +12,7 @@ describe('pages/validate-demo/add.vue', () => { ...@@ -13,7 +12,7 @@ describe('pages/validate-demo/add.vue', () => {
let weight = 51 let weight = 51
let email = "1076998870@qq.com" let email = "1076998870@qq.com"
let dowloadUrl = "https://dcloud.io/" let dowloadUrl = "https://dcloud.io/"
const setForm = await page.setData({ await page.setData({
"formData": { "formData": {
"type": type, "type": type,
"type_name": type_name, "type_name": type_name,
......
const Sequencer = require("@jest/test-sequencer").default; const Sequencer = require("@jest/test-sequencer").default;
const sortTestFilenames = ["add.test.js","list.test.js","detail.test.js","edit.test.js"]; const sortTestFilenames = ["add.test.js","list.test.js","detail.test.js","edit.test.js","validate-demo-add.test.js"];
class CustomSequencer extends Sequencer { class CustomSequencer extends Sequencer {
sort(tests) { sort(tests) {
// 测试例排序 // 测试例排序
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册