If this test:
'use strict' describe('application', function() { it('should login', function() { browser().navigateTo('/'); expect('111').toBe('111'); }); });
includes the string "browser" , the result:
Chrome 26.0 (Windows) application should login FAILED ReferenceError: browser is not defined at null.<anonymous> (...../test/js/e2e/tests/test.js:6:9) Chrome 26.0 (Windows): Executed 1 of 1 (1 FAILED) (0.359 secs / 0.004 secs)
but without this line, the test will succeed.
People suggest including angular-scenario.js , but that breaks the tests.
expect('111').toBe('222');
evaluated as true.
What to do?
source share