提交 6656ee24 编写于 作者: Anne_LXM's avatar Anne_LXM

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

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