diff options
Diffstat (limited to 'tests/ui-regression/test')
-rw-r--r-- | tests/ui-regression/test/appsSpec.js | 2 | ||||
-rw-r--r-- | tests/ui-regression/test/installSpec.js | 4 | ||||
-rw-r--r-- | tests/ui-regression/test/loginSpec.js | 8 | ||||
-rw-r--r-- | tests/ui-regression/test/publicSpec.js | 8 | ||||
-rw-r--r-- | tests/ui-regression/test/settingsSpec.js | 8 |
5 files changed, 18 insertions, 12 deletions
diff --git a/tests/ui-regression/test/appsSpec.js b/tests/ui-regression/test/appsSpec.js index b5e5a889e41..3a23c1df773 100644 --- a/tests/ui-regression/test/appsSpec.js +++ b/tests/ui-regression/test/appsSpec.js @@ -39,7 +39,7 @@ describe('apps', function () { }, {viewport: resolution, waitUntil: 'networkidle2'}); }); - ['installed', 'enabled', 'disabled', 'app-bundles'].forEach(function(endpoint) { + ['your-apps', 'enabled', 'disabled', 'app-bundles'].forEach(function(endpoint) { it('apps.' + endpoint + '.' + resolution.title, async function () { return helper.takeAndCompare(this, undefined, async function (page) { try { diff --git a/tests/ui-regression/test/installSpec.js b/tests/ui-regression/test/installSpec.js index 02577883aae..bfb063bd467 100644 --- a/tests/ui-regression/test/installSpec.js +++ b/tests/ui-regression/test/installSpec.js @@ -31,7 +31,7 @@ describe('install', function () { config.resolutions.forEach(function (resolution) { it('show-page.' + resolution.title, async function () { // (test, route, prepare, action, options - return helper.takeAndCompare(this, '/index.php', async (page) => { + return helper.takeAndCompare(this, 'index.php', async (page) => { await helper.delay(100); await page.$eval('body', function (e) { $('#adminlogin').blur(); @@ -61,7 +61,7 @@ describe('install', function () { helper.pageBase.setDefaultNavigationTimeout(5*60*1000); helper.pageCompare.setDefaultNavigationTimeout(5*60*1000); // just run for one resolution since we can only install once - return helper.takeAndCompare(this, '/index.php', async function (page) { + return helper.takeAndCompare(this, 'index.php', async function (page) { const login = await page.type('#adminlogin', 'admin'); const password = await page.type('#adminpass', 'admin'); const inputElement = await page.$('input[type=submit]'); diff --git a/tests/ui-regression/test/loginSpec.js b/tests/ui-regression/test/loginSpec.js index 23f86737a76..8607bbabc84 100644 --- a/tests/ui-regression/test/loginSpec.js +++ b/tests/ui-regression/test/loginSpec.js @@ -62,11 +62,17 @@ describe('login', function () { this.timeout(30000); await helper.resetBrowser(); return helper.takeAndCompare(this, '/', async function (page) { + await page.waitForSelector('input#user'); await page.type('#user', 'admin'); await page.type('#password', 'admin'); const inputElement = await page.$('input[type=submit]'); await inputElement.click(); - await page.waitForNavigation({waitUntil: 'networkidle0'}); + await page.waitForNavigation({waitUntil: 'networkidle2'}); + await page.waitForSelector('#header'); + await page.$eval('body', function (e) { + // force relative timestamp to fixed value, since it breaks screenshot diffing + $('.live-relative-timestamp').removeClass('live-relative-timestamp').text('5 minutes ago'); + }); return await helper.delay(100); }, {viewport: resolution}); }) diff --git a/tests/ui-regression/test/publicSpec.js b/tests/ui-regression/test/publicSpec.js index 843f8f50cef..0893adf9a42 100644 --- a/tests/ui-regression/test/publicSpec.js +++ b/tests/ui-regression/test/publicSpec.js @@ -37,7 +37,7 @@ describe('public', function () { */ config.resolutions.forEach(function (resolution) { it('file-share-invalid.' + resolution.title, async function () { - return helper.takeAndCompare(this, '/index.php/s/invalid', async function () { + return helper.takeAndCompare(this, 'index.php/s/invalid', async function () { }, {waitUntil: 'networkidle2', viewport: resolution}); }); }); @@ -48,7 +48,7 @@ describe('public', function () { var shareLink = {}; it('file-share-link', async function () { - return helper.takeAndCompare(this, '/index.php/apps/files', async function (page) { + return helper.takeAndCompare(this, 'index.php/apps/files', async function (page) { const element = await page.$('[data-file="welcome.txt"] .action-share'); await element.click('[data-file="welcome.txt"] .action-share'); await page.waitForSelector('input.linkCheckbox'); @@ -71,7 +71,7 @@ describe('public', function () { config.resolutions.forEach(function (resolution) { it('file-share-valid.' + resolution.title, async function () { - return helper.takeAndCompare(this, '/index.php/apps/files', async function (page) { + return helper.takeAndCompare(this, 'index.php/apps/files', async function (page) { await page.goto(shareLink[page.url()]); await helper.delay(500); }, {waitUntil: 'networkidle2', viewport: resolution}); @@ -89,7 +89,7 @@ describe('public', function () { }); it('file-unshare', async function () { - return helper.takeAndCompare(this, '/index.php/apps/files', async function (page) { + return helper.takeAndCompare(this, 'index.php/apps/files', async function (page) { const element = await page.$('[data-file="welcome.txt"] .action-share'); await element.click('[data-file="welcome.txt"] .action-share'); await page.waitForSelector('input.linkCheckbox'); diff --git a/tests/ui-regression/test/settingsSpec.js b/tests/ui-regression/test/settingsSpec.js index 560218c80f8..8b10b281fb6 100644 --- a/tests/ui-regression/test/settingsSpec.js +++ b/tests/ui-regression/test/settingsSpec.js @@ -33,24 +33,24 @@ describe('settings', function () { config.resolutions.forEach(function (resolution) { it('personal.' + resolution.title, async function () { - return helper.takeAndCompare(this, '/index.php/settings/user', async function (page) { + return helper.takeAndCompare(this, 'index.php/settings/user', async function (page) { }, {viewport: resolution}); }); it('admin.' + resolution.title, async function () { - return helper.takeAndCompare(this, '/index.php/settings/admin', async function (page) { + return helper.takeAndCompare(this, 'index.php/settings/admin', async function (page) { }, {viewport: resolution}); }); ['sharing', 'security', 'theming', 'encryption', 'additional', 'tips-tricks'].forEach(function(endpoint) { it('admin.' + endpoint + '.' + resolution.title, async function () { - return helper.takeAndCompare(this, '/index.php/settings/admin/' + endpoint, async function (page) { + return helper.takeAndCompare(this, 'index.php/settings/admin/' + endpoint, async function (page) { }, {viewport: resolution, waitUntil: 'networkidle2'}); }); }); it('usermanagement.' + resolution.title, async function () { - return helper.takeAndCompare(this, '/index.php/settings/users', async function (page) { + return helper.takeAndCompare(this, 'index.php/settings/users', async function (page) { }, {viewport: resolution}); }); |