scroll-view.test.js 457 字节
Newer Older
1
describe('component-native-scroll-view', () => {
2 3 4 5 6 7 8 9 10 11 12 13 14 15
  let page;
  beforeAll(async () => {
    page = await program.reLaunch('/pages/component/scroll-view/scroll-view');
    await page.waitFor(300);
  });


  it('scroll-view-screenshot', async () => {
    //禁止滚动条
    await page.setData({
        showScrollbar: false
    })
    await page.waitFor(300);
    const image = await program.screenshot();
16 17
    expect(image).toSaveImageSnapshot();
  });
18
});