提交 bb6e52d1 编写于 作者: H hdx

chore: rename page-scrollTo to page-scroll-to

上级 14c23357
...@@ -556,7 +556,7 @@ ...@@ -556,7 +556,7 @@
} }
}, { }, {
"path": "pages/API/page-scrollTo/page-scrollTo", "path": "pages/API/page-scroll-to/page-scroll-to",
"style": { "style": {
"navigationBarTitleText": "pageScrollTo", "navigationBarTitleText": "pageScrollTo",
"enablePullDownRefresh": false "enablePullDownRefresh": false
......
const PAGE_PATH = '/pages/API/page-scrollTo/page-scrollTo' const PAGE_PATH = '/pages/API/page-scroll-to/page-scroll-to'
describe('page-scrollTo', () => { describe('page-scroll-to', () => {
let page let page
beforeAll(async () => { beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH) page = await program.reLaunch(PAGE_PATH)
await page.waitFor(500) await page.waitFor(500)
}) })
// TODO // TODO
it('scrollTo', async () => { it('scroll-to', async () => {
const btnScrollTo = await page.$('.btn-scrollTo') const btnScrollTo = await page.$('.btn-scrollTo')
await btnScrollTo.tap() await btnScrollTo.tap()
...@@ -15,7 +15,7 @@ describe('page-scrollTo', () => { ...@@ -15,7 +15,7 @@ describe('page-scrollTo', () => {
// const scrollTop = await page.scrollTop() // const scrollTop = await page.scrollTop()
// expect(scrollTop).toBe(100) // expect(scrollTop).toBe(100)
}) })
// it('scrollToElement', async () => { // it('scroll-to-element', 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')
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
}, },
{ {
name: "将页面滚动到目标位置", name: "将页面滚动到目标位置",
url: "page-scrollTo", url: "page-scroll-to",
enable: true enable: true
}, },
] as Page[], ] as Page[],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册