sample.spec.js (angular.js-1.7.9) | : | sample.spec.js (angular.js-1.8.0) | ||
---|---|---|---|---|
skipping to change at line 12 | skipping to change at line 12 | |||
// Sample E2E test: | // Sample E2E test: | |||
describe('Sample', function() { | describe('Sample', function() { | |||
beforeEach(function() { | beforeEach(function() { | |||
loadFixture('sample'); | loadFixture('sample'); | |||
}); | }); | |||
it('should have the interpolated text', function() { | it('should have the interpolated text', function() { | |||
expect(element(by.binding('text')).getText()).toBe('Hello, world!'); | 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); | ||||
}); | ||||
}); | }); | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 9 lines changed or added |