提交 34c33704 编写于 作者: Anne_LXM's avatar Anne_LXM

test(picker-view.test.js): 调整测试截图名称

上级 93ac4d81
......@@ -55,7 +55,7 @@ describe('PickerView.uvue', () => {
})
await page.waitFor(500)
expect(await pickerViewEl.attribute('indicatorStyle')).toBe(indicatorStyle)
await toScreenshot('indicator-style')
await toScreenshot('picker-view-indicator-style')
})
if(process.env.uniTestPlatformInfo.startsWith('web')){
......@@ -66,7 +66,7 @@ describe('PickerView.uvue', () => {
indicatorClass:"indicator-test",//设置indicatorClass为indicator-test
})
expect(await pickerViewEl.attribute('indicatorClass')).toBe("indicator-test")
await toScreenshot('indicator-class')
await toScreenshot('picker-view-web-indicator-class')
await page.setData({
indicatorClass:"",//清空indicatorClass
})
......@@ -75,12 +75,12 @@ describe('PickerView.uvue', () => {
const maskStyle = "background-image: linear-gradient(to bottom, #d8e5ff, rgba(216, 229, 255, 0));"
await page.setData({maskStyle})
expect(await pickerViewEl.attribute('maskStyle')).toBe(maskStyle)
await toScreenshot('mask-style')
await toScreenshot('picker-view-web-mask-style')
})
it('mask-class', async () => {
await page.setData({maskClass:"mask-test"})
expect(await pickerViewEl.attribute('maskClass')).toBe("mask-test")
await toScreenshot('mask-class')
await toScreenshot('picker-view-web-mask-class')
})
return
}
......@@ -98,7 +98,7 @@ describe('PickerView.uvue', () => {
expect(await pickerViewEl.attribute('mask-top-style')).toBe(linearToTop)
expect(await pickerViewEl.attribute('mask-bottom-style')).toBe(linearToBottom)
await page.waitFor(2000)
await toScreenshot('mask-top-bottom-style')
await toScreenshot('picker-view-app-mask-top-bottom-style')
})
it('reopen-picker-view-page', async () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册