load-font-face.test.js 335 字节
Newer Older
DCloud-WZF's avatar
DCloud-WZF 已提交
1 2 3 4 5
const PAGE_PATH = '/pages/API/load-font-face/load-font-face'

describe('loadFontFace', () => {
  beforeAll(async () => {
    const page = await program.navigateTo(PAGE_PATH)
6
    await page.waitFor(4000)
DCloud-WZF's avatar
DCloud-WZF 已提交
7 8 9 10 11 12
  })
  it('screenshot', async () => {
    const image = await program.screenshot()
    expect(image).toMatchImageSnapshot()
  })
})