diff options
Diffstat (limited to 'js/tests/e2e/main.js')
-rw-r--r-- | js/tests/e2e/main.js | 15 |
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 |