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

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