transition-duration.test.js 662 B

12345678910111213141516171819202122
  1. describe('/pages/CSS/transition/transition-duration.uvue', () => {
  2. const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
  3. const isAndroid = platformInfo.startsWith('android')
  4. let page;
  5. beforeAll(async () => {
  6. page = await program.reLaunch('/pages/CSS/transition/transition-duration')
  7. await page.waitFor(2000);
  8. });
  9. it("snap transition finish", async () => {
  10. await page.callMethod('jest_start');
  11. await page.waitFor(1000);
  12. await page.callMethod('jest_reset');
  13. await page.waitFor(1000);
  14. const image = await program.screenshot({
  15. fullPage: true
  16. })
  17. expect(image).toSaveImageSnapshot()
  18. })
  19. });