sticky-header.test.js 458 字节
Newer Older
shutao-dc's avatar
shutao-dc 已提交
1 2
describe('component-native-sticky-header', () => {
  let page
shutao-dc's avatar
shutao-dc 已提交
3
  beforeAll(async () => {
shutao-dc's avatar
shutao-dc 已提交
4 5 6 7 8 9 10 11 12 13 14 15
    page = await program.reLaunch('/pages/component/sticky-header/sticky-header')
    await page.waitFor(200)
  })

  //检测吸顶效果
  it('check_sticky_header', async () => {
    await page.callMethod('confirm_scroll_top_input', 600)
    await page.waitFor(400)
    const image = await program.screenshot();
    expect(image).toMatchImageSnapshot();
  })
})