diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-07-30 12:12:36 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-07-30 15:24:46 +0200 |
commit | 412002906f9ced2fa1a73d99acb6e35c27d6c952 (patch) | |
tree | 57b6c0a5c51e8a414e015d489d72d220ab3d9e79 /tests | |
parent | 4bd7cb7a2d06fb99503b6fc04ad2d2650825cefd (diff) | |
download | nextcloud-server-412002906f9ced2fa1a73d99acb6e35c27d6c952.tar.gz nextcloud-server-412002906f9ced2fa1a73d99acb6e35c27d6c952.zip |
Keep timestamp replacements at the beginning
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ui-regression/helper.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/ui-regression/helper.js b/tests/ui-regression/helper.js index 149c4059e99..1ec62728dc7 100644 --- a/tests/ui-regression/helper.js +++ b/tests/ui-regression/helper.js @@ -137,7 +137,14 @@ module.exports = { this.pageCompare.goto(`${config.urlChange}${route}`, {waitUntil: options.waitUntil}) ]); } - + await this.pageBase.$eval('body', function (e) { + $('.live-relative-timestamp').removeClass('live-relative-timestamp').text('5 minutes ago'); + $(':focus').blur(); + }); + await this.pageCompare.$eval('body', function (e) { + $('.live-relative-timestamp').removeClass('live-relative-timestamp').text('5 minutes ago'); + $(':focus').blur(); + }); var failed = null; try { await this.pageBase.bringToFront(); @@ -147,6 +154,7 @@ module.exports = { } catch (err) { failed = err; } + await this.awaitNetworkIdle(3); await this.pageBase.$eval('body', function (e) { $('.live-relative-timestamp').removeClass('live-relative-timestamp').text('5 minutes ago'); $(':focus').blur(); @@ -155,7 +163,6 @@ module.exports = { $('.live-relative-timestamp').removeClass('live-relative-timestamp').text('5 minutes ago'); $(':focus').blur(); }); - await this.awaitNetworkIdle(3); await Promise.all([ this.pageBase.screenshot({ path: `${this._outputDirectory}/${fileName}.base.png`, |