summaryrefslogtreecommitdiffstats
path: root/js/tests/e2e/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/e2e/main.js')
-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