refactor(test/e2e): remove explicit call to waitForAngular()
Protractor automatically calls `waitForAngular()`, before every WebDriver action. Closes #14920
This commit is contained in:
committed by
Peter Bacon Darwin
parent
fa81df4779
commit
26acedde7c
+1
-1
@@ -1,6 +1,6 @@
|
||||
describe('App where angular is loaded more than once', function() {
|
||||
beforeEach(function() {
|
||||
loadFixture('angular-already-loaded').andWaitForAngular();
|
||||
loadFixture('angular-already-loaded');
|
||||
});
|
||||
|
||||
it('should have the interpolated text', function() {
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
var helper = {
|
||||
andWaitForAngular: function() {
|
||||
browser.waitForAngular();
|
||||
},
|
||||
loadFixture: function(fixture) {
|
||||
var i = 0;
|
||||
while (fixture[i] === '/') ++i;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
describe('angular-loader', function() {
|
||||
beforeEach(function() {
|
||||
loadFixture('loader').andWaitForAngular();
|
||||
loadFixture('loader');
|
||||
});
|
||||
|
||||
it('should not be broken by loading the modules before core', function() {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
describe('Customizing the jqLite / jQuery version', function() {
|
||||
it('should be able to force jqLite', function() {
|
||||
loadFixture('ngJq').andWaitForAngular();
|
||||
loadFixture('ngJq');
|
||||
expect(element(by.binding('jqueryVersion')).getText()).toBe('jqLite');
|
||||
});
|
||||
|
||||
it('should be able to use a specific version jQuery', function() {
|
||||
loadFixture('ngJqJquery').andWaitForAngular();
|
||||
loadFixture('ngJqJquery');
|
||||
expect(element(by.binding('jqueryVersion')).getText()).toBe('2.1.0');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Sample E2E test:
|
||||
describe('Sample', function() {
|
||||
beforeEach(function() {
|
||||
loadFixture('sample').andWaitForAngular();
|
||||
loadFixture('sample');
|
||||
});
|
||||
|
||||
it('should have the interpolated text', function() {
|
||||
|
||||
Reference in New Issue
Block a user