/
githubmirror
/
angular.js
Обзор
Документация
Войти
/
githubmirror
/
angular.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/e2e/tests/sample.spec.js
21 строка
558 B
Krzysztof Kotowicz
fix(grunt-utils): insert the core CSS styles without using innerHTML
25 май 2020, 11:17
25 май 2020, 11:17
2518966
Код
Авторство
О чём код?
'use strict'; // Sample E2E test: describe('Sample', function() { beforeEach(function() { loadFixture('sample'); }); it('should have the interpolated text', function() { expect(element(by.binding('text')).getText()).toBe('Hello, world!'); }); it('should insert the ng-cloak styles', function() { browser.executeScript(` var span = document.createElement('span'); span.className = 'ng-cloak foo'; document.body.appendChild(span); `); expect(element(by.className('foo')).isDisplayed()).toBe(false); }); });