diff --git a/tests/e2e/usertest/helpers.ts b/tests/e2e/usertest/helpers.ts index 9dd249d..cfcd05f 100644 --- a/tests/e2e/usertest/helpers.ts +++ b/tests/e2e/usertest/helpers.ts @@ -511,8 +511,8 @@ export async function attemptStake( ): Promise { console.log(`[${personaName}] Attempting to stake ${amount} KRK at tax rate ${taxRateIndex}%...`); - const baseUrl = page.url().split('#')[0]; - await page.goto(`${baseUrl}stake`); + const origin = new URL(page.url()).origin; + await page.goto(`${origin}/stake`); try { // Wait for stake form to fully load