sticky-header.test.js 465 字节
Newer Older
shutao-dc's avatar
shutao-dc 已提交
1
describe('component-native-sticky-header', () => {
雪洛's avatar
雪洛 已提交
2 3 4 5 6
  let page
  beforeAll(async () => {
    page = await program.reLaunch('/pages/component/sticky-header/sticky-header')
    await page.waitFor('sticky-header')
  })
DCloud-WZF's avatar
DCloud-WZF 已提交
7

雪洛's avatar
雪洛 已提交
8 9 10
  //检测吸顶效果
  it('check_sticky_header', async () => {
    await page.callMethod('confirm_scroll_top_input', 600)
11
    const image = await program.screenshot({fullPage: true});
12
    expect(image).toSaveImageSnapshot();
雪洛's avatar
雪洛 已提交
13
  })
14
})