提交 e4667d08 编写于 作者: H hdx

fix: page-scrollTo, 注释掉暂不支持的自动化测试方法 page.scrollTop()

上级 b8f9e719
...@@ -7,13 +7,14 @@ describe('page-scrollTo', () => { ...@@ -7,13 +7,14 @@ describe('page-scrollTo', () => {
await page.waitFor(500) await page.waitFor(500)
}) })
// TODO // TODO
// it('scrollTo', async () => { it('scrollTo', async () => {
// const btnScrollTo = await page.$('.btn-scrollTo') const btnScrollTo = await page.$('.btn-scrollTo')
// await toggle.tap() await btnScrollTo.tap()
// await page.waitFor(50) await page.waitFor(50)
// expect(await page.scrollTop).toBe(100) // const scrollTop = await page.scrollTop()
// }) // expect(scrollTop).toBe(100)
})
// it('scrollToElement', async () => { // it('scrollToElement', async () => {
// const btnScrollTo = await page.$('.btn-scrollToElement') // const btnScrollTo = await page.$('.btn-scrollToElement')
// const scrollToElement = await page.$('.custom-element') // const scrollToElement = await page.$('.custom-element')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册