mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2025-01-11 08:01:03 +01:00
42 lines
927 B
JavaScript
42 lines
927 B
JavaScript
'use strict';
|
|
|
|
/* https://github.com/angular/protractor/blob/master/docs/getting-started.md */
|
|
|
|
describe('my app', function() {
|
|
|
|
browser.get('index.html');
|
|
|
|
it('should automatically redirect to /home when location hash/fragment is empty', function() {
|
|
expect(browser.getLocationAbsUrl()).toMatch("/home");
|
|
});
|
|
|
|
|
|
describe('home', function() {
|
|
|
|
beforeEach(function() {
|
|
browser.get('index.html#/home');
|
|
});
|
|
|
|
|
|
it('should render home when user navigates to /home', function() {
|
|
expect(element.all(by.css('[ui-view] p')).first().getText()).
|
|
toMatch(/This is home/);
|
|
});
|
|
|
|
});
|
|
|
|
|
|
describe('about', function() {
|
|
|
|
beforeEach(function() {
|
|
browser.get('index.html#/about');
|
|
});
|
|
|
|
|
|
it('should render about when user navigates to /about', function() {
|
|
expect(element.all(by.css('[ui-view] p')).first().getText()).
|
|
toMatch(/This is about/);
|
|
});
|
|
|
|
});
|
|
});
|