refactor(test/e2e): remove explicit call to waitForAngular()

Protractor automatically calls `waitForAngular()`, before every WebDriver action.

Closes #14920
This commit is contained in:
Georgios Kalpakas
2016-07-15 15:23:57 +03:00
committed by Peter Bacon Darwin
parent fa81df4779
commit 26acedde7c
5 changed files with 5 additions and 8 deletions
+1 -1
View File
@@ -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() {
-3
View File
@@ -1,7 +1,4 @@
var helper = {
andWaitForAngular: function() {
browser.waitForAngular();
},
loadFixture: function(fixture) {
var i = 0;
while (fixture[i] === '/') ++i;
+1 -1
View File
@@ -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() {
+2 -2
View File
@@ -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 -1
View File
@@ -1,7 +1,7 @@
// Sample E2E test:
describe('Sample', function() {
beforeEach(function() {
loadFixture('sample').andWaitForAngular();
loadFixture('sample');
});
it('should have the interpolated text', function() {