blob: 94e31ee622ce8cd1afe20ecab536fc32baddef12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
describe('news page', function () {
'use strict';
var ptor = protractor.getInstance();
beforeEach(function () {
browser.ignoreSynchronization = true;
return browser.ignoreSynchronization;
});
beforeEach(function () {
ptor.get('http://localhost/owncloud/');
ptor.findElement(By.id('user')).sendKeys('admin');
ptor.findElement(By.id('password')).sendKeys('admin');
ptor.findElement(By.id('submit')).click();
});
describe('should log in', function () {
beforeEach(function () {
browser.ignoreSynchronization = false;
return browser.ignoreSynchronization;
});
it('should go to the news page', function () {
ptor.get('http://localhost/owncloud/index.php/apps/news/');
ptor.getTitle().then(function (title) {
expect(title).toBe('News - ownCloud');
});
});
});
});
|