22 lines
463 B
JavaScript
22 lines
463 B
JavaScript
/*global browser, by */
|
|
|
|
'use strict';
|
|
|
|
describe('E2E: Example', function() {
|
|
|
|
beforeEach(function() {
|
|
browser.get('/');
|
|
browser.waitForAngular();
|
|
});
|
|
|
|
it('should route correctly', function() {
|
|
expect(browser.getLocationAbsUrl()).toMatch('/');
|
|
});
|
|
|
|
it('should show the number defined in the controller', function() {
|
|
var element = browser.findElement(by.css('.number-example'));
|
|
expect(element.getText()).toEqual('1234');
|
|
});
|
|
|
|
});
|