Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 0187b94

Browse files
authored
Merge branch 'develop' into t3chguy/fix/18014
2 parents de69470 + e373531 commit 0187b94

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/end-to-end-tests/src/scenarios/update.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import { strict as assert } from 'assert';
1919

2020
import { ElementSession } from "../session";
2121

22+
const NEW_VERSION = "some-new-version";
23+
2224
async function mockVersionHTTPResponse(session: ElementSession) {
2325
// Mock the HTTP response to return a new version to trigger auto-update behaviour
2426
await session.page.setRequestInterception(true);
@@ -29,7 +31,7 @@ async function mockVersionHTTPResponse(session: ElementSession) {
2931
request.respond({
3032
contentType: "text/html",
3133
status: 200,
32-
body: "some-new-version",
34+
body: NEW_VERSION,
3335
});
3436
} else {
3537
request.continue();
@@ -43,5 +45,5 @@ export async function updateScenarios(session: ElementSession) {
4345
await session.goto(session.url('/'));
4446
await session.waitForReload();
4547
const newUrl = new URL(session.page.url());
46-
assert.equal(newUrl.searchParams.get("updated"), "1");
48+
assert.equal(newUrl.searchParams.get("updated"), NEW_VERSION);
4749
}

0 commit comments

Comments
 (0)