blob: 328556326e57049b7accd2e423fbd29d67d32aee (
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
35
36
|
/**
* ownCloud - News
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Bernhard Posselt <dev@bernhard-posselt.com>
* @copyright Bernhard Posselt 2012, 2014
*/
describe('news page', function () {
'use strict';
beforeEach(function () {
browser.ignoreSynchronization = true;
browser.waitForAngular();
});
it('should go to the news page', function () {
browser.getTitle().then(function (title) {
expect(title).toContain('News');
});
});
it('should show the first run page', function () {
var firstRun,
greeting;
firstRun = browser.findElement(By.id('first-run'));
greeting = firstRun.findElement(By.tagName('h1'));
expect(firstRun.isDisplayed()).toBe(true);
expect(greeting.getText()).toBe('Welcome to the ownCloud News app!');
});
});
|