Keep timestamp replacements at the beginning
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
4bd7cb7a2d
commit
412002906f
|
@ -137,7 +137,14 @@ module.exports = {
|
||||||
this.pageCompare.goto(`${config.urlChange}${route}`, {waitUntil: options.waitUntil})
|
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;
|
var failed = null;
|
||||||
try {
|
try {
|
||||||
await this.pageBase.bringToFront();
|
await this.pageBase.bringToFront();
|
||||||
|
@ -147,6 +154,7 @@ module.exports = {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
failed = err;
|
failed = err;
|
||||||
}
|
}
|
||||||
|
await this.awaitNetworkIdle(3);
|
||||||
await this.pageBase.$eval('body', function (e) {
|
await this.pageBase.$eval('body', function (e) {
|
||||||
$('.live-relative-timestamp').removeClass('live-relative-timestamp').text('5 minutes ago');
|
$('.live-relative-timestamp').removeClass('live-relative-timestamp').text('5 minutes ago');
|
||||||
$(':focus').blur();
|
$(':focus').blur();
|
||||||
|
@ -155,7 +163,6 @@ module.exports = {
|
||||||
$('.live-relative-timestamp').removeClass('live-relative-timestamp').text('5 minutes ago');
|
$('.live-relative-timestamp').removeClass('live-relative-timestamp').text('5 minutes ago');
|
||||||
$(':focus').blur();
|
$(':focus').blur();
|
||||||
});
|
});
|
||||||
await this.awaitNetworkIdle(3);
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
this.pageBase.screenshot({
|
this.pageBase.screenshot({
|
||||||
path: `${this._outputDirectory}/${fileName}.base.png`,
|
path: `${this._outputDirectory}/${fileName}.base.png`,
|
||||||
|
|
Loading…
Reference in New Issue