summaryrefslogtreecommitdiffstats
path: root/js/tests/e2e
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-19 03:41:28 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-19 03:41:28 +0200
commit928ccf49fb5c6deb405358ad38221b0cd205fb6b (patch)
treedb5b4921eed3fe8193dbcaeb07cefb7e6c714c34 /js/tests/e2e
parent90584316b8f275fcad904b644676544eb0322636 (diff)
periodically update
Diffstat (limited to 'js/tests/e2e')
-rw-r--r--js/tests/e2e/main.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/js/tests/e2e/main.js b/js/tests/e2e/main.js
index 328556326..5b0ea5d82 100644
--- a/js/tests/e2e/main.js
+++ b/js/tests/e2e/main.js
@@ -23,14 +23,15 @@ describe('news page', function () {
it('should show the first run page', function () {
- var firstRun,
- greeting;
+ var firstRun;
+
firstRun = browser.findElement(By.id('first-run'));
- greeting = firstRun.findElement(By.tagName('h1'));
+ firstRun.findElement(By.tagName('h1')).then(function (greeting) {
+ expect(greeting.getText()).toBe('Welcome to the ownCloud News app!');
+ });
expect(firstRun.isDisplayed()).toBe(true);
- expect(greeting.getText()).toBe('Welcome to the ownCloud News app!');
});
}); \ No newline at end of file