summaryrefslogtreecommitdiffstats
path: root/js/tests/e2e
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-19 02:22:02 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-19 02:22:02 +0200
commit90584316b8f275fcad904b644676544eb0322636 (patch)
tree35ead28e8f0cdccc1771464442bb83ce5b558cc6 /js/tests/e2e
parentded252d29e99e068ea341506129e47a05e053a24 (diff)
add test for firstrun page
Diffstat (limited to 'js/tests/e2e')
-rw-r--r--js/tests/e2e/main.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/js/tests/e2e/main.js b/js/tests/e2e/main.js
index 3beb4c8af..328556326 100644
--- a/js/tests/e2e/main.js
+++ b/js/tests/e2e/main.js
@@ -11,7 +11,8 @@ describe('news page', function () {
'use strict';
beforeEach(function () {
- browser.get('http://localhost/owncloud/index.php/apps/news/');
+ browser.ignoreSynchronization = true;
+ browser.waitForAngular();
});
it('should go to the news page', function () {
@@ -20,4 +21,16 @@ describe('news page', function () {
});
});
+
+ 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!');
+ });
+
}); \ No newline at end of file