创赢未来评分系统 - 初始化提交(移除大文件)
All checks were successful
Deploy to Server / deploy (push) Successful in 18s

This commit is contained in:
爽哒哒
2026-03-18 22:28:45 +08:00
commit f26d35da66
315 changed files with 36043 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
const automator = require('miniprogram-automator')
describe('Home Page', () => {
let miniProgram
beforeAll(async () => {
miniProgram = await automator.launch({
projectPath: '../' // Relative path to miniprogram root
})
}, 30000)
afterAll(async () => {
await miniProgram.close()
})
it('should render title', async () => {
const page = await miniProgram.reLaunch('/pages/index/index')
await page.waitFor(2000)
const element = await page.$('.title-text')
expect(await element.text()).toContain('未来已来') // Assuming typed text starts or contains this
})
})