28f598f9创建于 2025年7月23日历史提交
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()

const isWeb = platformInfo.startsWith('web')



let page;

describe('compass', () => {

  if (!isWeb) {

    it('not support', async () => {

      expect(1).toBe(1)

    })

    return

  }

  beforeAll(async () => {

    page = await program.reLaunch('/pages/API/compass/compass')

    await page.waitFor('view');

    await page.waitFor(1000);

  });



  it('screenshot', async () => {

    const image = await program.screenshot({ fullPage: true });

    expect(image).toSaveImageSnapshot();

  });

});