/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/visual-tests/amphtml-ads/static.js
18 строк
561 B
Kristofer Baxter
♻️ Remove Notice from JS and Markdown (#35717)
19 авг 2021, 21:21
Не верифицирован
19 авг 2021, 21:21
f564b7e
Код
Авторство
О чём код?
'use strict'; const {fillIframeSrcdoc} = require('./helpers'); const sleep = (ms) => new Promise((res) => setTimeout(res, ms)); /** * Percy preserves the DOM object as snapshot so the content of iframe is not * included. This interactive test is created to backfill the iframe to the * parent DOM object so that it can be included in the Percy snapshot. */ module.exports = { 'page view': async (page, unusedName) => { await fillIframeSrcdoc(page); // To combat visual diff flakiness possibly due to image loading await sleep(300); }, };