overflow.test.js 460 字节
Newer Older
shutao-dc's avatar
shutao-dc 已提交
1
describe('component-native-overflow', () => {
shutao-dc's avatar
shutao-dc 已提交
2 3 4 5 6 7 8 9 10
  let page
  beforeAll(async () => {
    //打开list-view测试页
    page = await program.reLaunch('/pages/CSS/overflow/overflow')
    await page.waitFor("image")
  })

  //检测overflow设置hidden,visible
  it('check_view_overflow', async () => {
shutao-dc's avatar
shutao-dc 已提交
11
    await page.waitFor(600)
shutao-dc's avatar
shutao-dc 已提交
12 13 14 15 16 17
    const image = await program.screenshot({
      fullPage: true,
    });
    expect(image).toMatchImageSnapshot();
  })
})