/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/e2e/test-amp-bind-iframe.js
37 строк
1 KB
Daniel Rozenberg
❄️ Unskip some tests that no longer fail (#39329)
09 авг 2023, 22:33
Не верифицирован
09 авг 2023, 22:33
1986291
Код
Авторство
О чём код?
describes.endtoend( 'amp-bind', { fixture: 'amp-bind/bind-iframe.html', }, (env) => { let controller; beforeEach(() => { controller = env.controller; }); describe('with <amp-iframe>', () => { it('should support binding to src', async () => { const button = await controller.findElement('#iframeButton'); const ampIframe = await controller.findElement('#ampIframe'); const iframe = await controller.findElement('#ampIframe iframe'); const newSrc = 'https://giphy.com/embed/DKG1OhBUmxL4Q'; await expect( controller.getElementAttribute(ampIframe, 'src') ).to.not.contain(newSrc); await expect( controller.getElementProperty(iframe, 'src') ).to.not.contain(newSrc); await controller.click(button); await expect( controller.getElementAttribute(ampIframe, 'src') ).to.contain(newSrc); await expect(controller.getElementProperty(iframe, 'src')).to.contain( newSrc ); }); }); } );