Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/e2e/buildTransaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { mockSimulateTx } from "./mock/helpers";

test.describe("Build Transaction Page", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/transaction/build");
await page.goto("/transaction/build");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use absolute URL in tests. Relative navigation can be tricky and we might get more flaky tests.

});

test("Loads", async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/createAccountPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test, expect } from "@playwright/test";

test.describe("Create Account Page", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/account/create");
await page.goto("/account/create");
});

test("Loads", async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/createMuxedAccountPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Account, MuxedAccount } from "@stellar/stellar-sdk";

test.describe("Create Muxed Account Page", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/account/muxed-create");
await page.goto("/account/muxed-create");
});

test("Loads", async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/diffXdrsPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test, expect } from "@playwright/test";

test.describe("Diff XDRs Page", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/xdr/diff");
await page.goto("/xdr/diff");
});

test("Loads", async ({ page }) => {
Expand Down
14 changes: 8 additions & 6 deletions tests/e2e/endpointsPage.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { test, expect } from "@playwright/test";

const BASE_URL = `http://localhost:${process.env.PORT || 3000}`;

test.describe("API Explorer page", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/endpoints");
await page.goto("/endpoints");
});

test("Loads", async ({ page }) => {
Expand Down Expand Up @@ -78,7 +80,7 @@ test.describe("API Explorer page", () => {

test("Dropdown shows correct links on page load", async ({ page }) => {
await page.goto(
"http://localhost:3000/endpoints/horizon/accounts/single",
`${BASE_URL}/endpoints/horizon/accounts/single`,
);
const sidebar = page.getByTestId("sidebar-links");

Expand Down Expand Up @@ -111,7 +113,7 @@ test.describe("API Explorer page", () => {

test.describe("All Accounts", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/endpoints/accounts");
await page.goto("/endpoints/accounts");
});

test("Page loads with correct title and view docs link", async ({
Expand Down Expand Up @@ -158,7 +160,7 @@ test.describe("API Explorer page", () => {
test.describe("Effects for Account", () => {
test.beforeEach(async ({ page }) => {
await page.goto(
"http://localhost:3000/endpoints/horizon/effects/account",
`${BASE_URL}/endpoints/horizon/effects/account`,
);
});

Expand Down Expand Up @@ -213,7 +215,7 @@ test.describe("API Explorer page", () => {

test.describe("[RPC Methods] getLedgerEntries", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/endpoints/rpc/get-ledger-entries");
await page.goto("/endpoints/rpc/get-ledger-entries");
await page.waitForSelector("h1", { timeout: 5000 });
await expect(page.locator("h1")).toHaveText("getLedgerEntries");
});
Expand Down Expand Up @@ -298,7 +300,7 @@ test.describe("API Explorer page", () => {

test.describe("[RPC Methods] getTransaction", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/endpoints/rpc/get-transaction");
await page.goto("/endpoints/rpc/get-transaction");
await page.waitForSelector("h1", { timeout: 5000 });
await expect(page.locator("h1")).toHaveText("getTransaction");
});
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/feeBumpPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test, expect } from "@playwright/test";

test.describe("Fee Bump Page", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/transaction/fee-bump");
await page.goto("/transaction/fee-bump");
});

test("Loads", async ({ page }) => {
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/fundAccountPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const TEST_CONTRACT_ID_SHORT = shortenStellarAddress(TEST_CONTRACT_ID);

test.describe("[futurenet/testnet] Fund Account Page", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/account/fund");
await page.goto("/account/fund");
});

test("Shows testnet network in the title by default", async ({ page }) => {
Expand Down Expand Up @@ -399,7 +399,7 @@ test.describe("[futurenet/testnet] Fund Account Page", () => {

test.describe("[mainnet] Fund Account Page", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/account");
await page.goto("/account");

// Switch to mainnet network
await page.getByTestId("networkSelector-button").click();
Expand All @@ -426,7 +426,7 @@ test.describe("[mainnet] Fund Account Page", () => {
test("I should see 'Switch Network' page on /account/fund", async ({
page,
}) => {
await page.goto("http://localhost:3000/account/fund");
await page.goto("/account/fund");

await expect(page.locator("h1")).toHaveText(
"Fund a Futurenet or Testnet network account or contract with XLM, USDC, and EURC",
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/introductionPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test.describe("Introduction Page", () => {
let sections: Locator;

test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/");
await page.goto("/");
sections = page.locator(".Lab__home__section");
});

Expand Down Expand Up @@ -96,7 +96,7 @@ test.describe("Introduction Page", () => {
// Using isolated browser context to make sure the network change won’t affect other tests.
const context = await browser.newContext();
const page = await context.newPage();
await page.goto("http://localhost:3000/");
await page.goto("/");

Comment on lines 97 to 100
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

page.goto("/") only works when the page/context has a baseURL configured. Here the page is created via browser.newContext() (not the Playwright page fixture), so no baseURL is applied and this navigation will fail. Pass baseURL when creating the context (recommended) or navigate using an absolute URL derived from the same baseURL used in playwright.config.ts.

Copilot uses AI. Check for mistakes.
const networksSection = page.locator(".Lab__home__section").nth(3);

Expand Down
12 changes: 7 additions & 5 deletions tests/e2e/mock/localStorage.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const BASE_URL = `http://localhost:${process.env.PORT || 3000}`;

export const SAVED_ACCOUNT_1 =
"GA46LGGOLXJY5OSX6N4LHV4MWDFXNGLK76I4NDNKKYAXRRSKI5AJGMXG";
export const SAVED_ACCOUNT_1_SECRET =
Expand Down Expand Up @@ -177,7 +179,7 @@ const SAVED_TRANSACTIONS = [
xdr: "AAAAAgAAAAB+TL0HLiAjanMRnyeqyhb8Iu+4d1g2dl1cwPi1UZAigwAAtwUABiLjAAAAGQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAGQAAAAAAAHUwAAAAAQAAAAAAAAABAAAABgAAAAEg/u86MzPrVcpNrsFUa84T82Kss8DLAE9ZMxLqhM22HwAAABAAAAABAAAAAgAAAA8AAAAHQ291bnRlcgAAAAASAAAAAAAAAAB+TL0HLiAjanMRnyeqyhb8Iu+4d1g2dl1cwPi1UZAigwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtqEAAAAA",
page: "build",
shareableUrl:
"http://localhost:3000/transaction/build?$=network$id=testnet&label=Testnet&horizonUrl=https:////horizon-testnet.stellar.org&rpcUrl=https:////soroban-testnet.stellar.org&passphrase=Test%20SDF%20Network%20/;%20September%202015;&transaction$build$params$source_account=GB7EZPIHFYQCG2TTCGPSPKWKC36CF35YO5MDM5S5LTAPRNKRSARIHWGG&seq_num=1727208213184537;&operations@$operation_type=payment&params$destination=GAQ6LVQXNRX26CBIKCYGGGD6B4SNQACTJ46QMHS4Q5S52UHZW76XJJPJ&asset$code=&issuer=&type=native;&amount=5;&source_account=;;&isValid$params:true&operations:true;&soroban$operation$operation_type=extend_footprint_ttl&params$durability=persistent&contract=CAQP53Z2GMZ6WVOKJWXMCVDLZYJ7GYVMWPAMWACPLEZRF2UEZW3B636S&key_xdr=AAAAEAAAAAEAAAACAAAADwAAAAdDb3VudGVyAAAAABIAAAAAAAAAAH5MvQcuICNqcxGfJ6rKFvwi77h3WDZ2XVzA+LVRkCKD&extend_ttl_to=30000&resource_fee=46753;;",
`${BASE_URL}/transaction/build?$=network$id=testnet&label=Testnet&horizonUrl=https:////horizon-testnet.stellar.org&rpcUrl=https:////soroban-testnet.stellar.org&passphrase=Test%20SDF%20Network%20/;%20September%202015;&transaction$build$params$source_account=GB7EZPIHFYQCG2TTCGPSPKWKC36CF35YO5MDM5S5LTAPRNKRSARIHWGG&seq_num=1727208213184537;&operations@$operation_type=payment&params$destination=GAQ6LVQXNRX26CBIKCYGGGD6B4SNQACTJ46QMHS4Q5S52UHZW76XJJPJ&asset$code=&issuer=&type=native;&amount=5;&source_account=;;&isValid$params:true&operations:true;&soroban$operation$operation_type=extend_footprint_ttl&params$durability=persistent&contract=CAQP53Z2GMZ6WVOKJWXMCVDLZYJ7GYVMWPAMWACPLEZRF2UEZW3B636S&key_xdr=AAAAEAAAAAEAAAACAAAADwAAAAdDb3VudGVyAAAAABIAAAAAAAAAAH5MvQcuICNqcxGfJ6rKFvwi77h3WDZ2XVzA+LVRkCKD&extend_ttl_to=30000&resource_fee=46753;;`,
params: {
source_account:
"GB7EZPIHFYQCG2TTCGPSPKWKC36CF35YO5MDM5S5LTAPRNKRSARIHWGG",
Expand Down Expand Up @@ -205,7 +207,7 @@ const SAVED_TRANSACTIONS = [
name: "Extend TTL",
xdr: "AAAAAgAAAAB+TL0HLiAjanMRnyeqyhb8Iu+4d1g2dl1cwPi1UZAigwAAtwUABiLjAAAAGQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAGQAAAAAAAHUwAAAAAQAAAAAAAAABAAAABgAAAAEg/u86MzPrVcpNrsFUa84T82Kss8DLAE9ZMxLqhM22HwAAABAAAAABAAAAAgAAAA8AAAAHQ291bnRlcgAAAAASAAAAAAAAAAB+TL0HLiAjanMRnyeqyhb8Iu+4d1g2dl1cwPi1UZAigwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtqEAAAABUZAigwAAAEADYbntiznotYPblvJQ35DiGEpMTQU9jCYANxV18VVGV6zDFSjB+qK++dF656Pr4oMTpyBVvE15YSo6ITxR5DoE",
page: "submit",
shareableUrl: "http://localhost:3000/transaction/submit?$=;;",
shareableUrl: `${BASE_URL}/transaction/submit?$=;;`,
},
];

Expand All @@ -215,22 +217,22 @@ const SAVED_CONTRACT_IDS = [
network: { id: "testnet", label: "Testnet" },
name: "Contract 1",
contractId: SAVED_CONTRACT_1,
shareableUrl: `http://localhost:3000/smart-contracts/contract-explorer?$=network$id=testnet&label=Testnet&horizonUrl=https:////horizon-testnet.stellar.org&rpcUrl=https:////soroban-testnet.stellar.org&passphrase=Test%20SDF%20Network%20/;%20September%202015;&smartContracts$explorer$contractId=${SAVED_CONTRACT_1};;`,
shareableUrl: `${BASE_URL}/smart-contracts/contract-explorer?$=network$id=testnet&label=Testnet&horizonUrl=https:////horizon-testnet.stellar.org&rpcUrl=https:////soroban-testnet.stellar.org&passphrase=Test%20SDF%20Network%20/;%20September%202015;&smartContracts$explorer$contractId=${SAVED_CONTRACT_1};;`,
},
{
timestamp: 1746637746246,
network: { id: "testnet", label: "Testnet" },
name: "Contract 2",
contractId: SAVED_CONTRACT_2,
shareableUrl: `http://localhost:3000/smart-contracts/contract-explorer?$=network$id=testnet&label=Testnet&horizonUrl=https:////horizon-testnet.stellar.org&rpcUrl=https:////soroban-testnet.stellar.org&passphrase=Test%20SDF%20Network%20/;%20September%202015;&smartContracts$explorer$contractId=${SAVED_CONTRACT_2};;`,
shareableUrl: `${BASE_URL}/smart-contracts/contract-explorer?$=network$id=testnet&label=Testnet&horizonUrl=https:////horizon-testnet.stellar.org&rpcUrl=https:////soroban-testnet.stellar.org&passphrase=Test%20SDF%20Network%20/;%20September%202015;&smartContracts$explorer$contractId=${SAVED_CONTRACT_2};;`,
},
];

export const MOCK_LOCAL_STORAGE = {
cookies: [],
origins: [
{
origin: "http://localhost:3000",
origin: BASE_URL,
localStorage: [
{
name: "stellar_lab_saved_keypairs",
Expand Down
6 changes: 4 additions & 2 deletions tests/e2e/networkLimitsPage.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { test, expect, type Page } from "@playwright/test";

const BASE_URL = `http://localhost:${process.env.PORT || 3000}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid writing this in every test file, we can try to make it a config or a helper (not sure where process would be available).

Can we use baseURL from Playwright config: https://github.com/stellar/laboratory/blob/main/playwright.config.ts#L12?


import {
formatLedgersToDays,
formatLedgersToMonths,
Expand All @@ -13,7 +15,7 @@ import { MAINNET_LIMITS } from "@/constants/networkLimits";
test.describe("Network Limits page on Mainnet", () => {
test.beforeEach(async ({ page }) => {
await page.goto(
"http://localhost:3000/network-limits?$=network$id=mainnet",
`${BASE_URL}/network-limits?$=network$id=mainnet`,
);
});

Expand Down Expand Up @@ -288,7 +290,7 @@ test.describe("Network Limits page on Mainnet", () => {

test("Custom network shows warning message", async ({ page }) => {
// Navigate directly to custom network
await page.goto("http://localhost:3000/network-limits?$=network$id=custom");
await page.goto("/network-limits?$=network$id=custom");

// Verify we're on custom network
await expect(page.getByTestId("networkSelector-button")).toHaveText(
Expand Down
6 changes: 4 additions & 2 deletions tests/e2e/networkSelector.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { test, expect } from "@playwright/test";

const BASE_URL = `http://localhost:${process.env.PORT || 3000}`;

test.describe("Network selector", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/");
await page.goto("/");
});

test("Defaults to Testnet", async ({ page }) => {
Expand Down Expand Up @@ -171,7 +173,7 @@ test.describe("Network selector", () => {

test("Selects network from search params", async ({ page }) => {
await page.goto(
"http://localhost:3000/?$=network$id=futurenet&label=Futurenet&horizonUrl=https:////horizon-futurenet.stellar.org&rpcUrl=https:////rpc-futurenet.stellar.org&passphrase=Test%20SDF%20Future%20Network%20/;%20October%202022;;",
`${BASE_URL}/?$=network$id=futurenet&label=Futurenet&horizonUrl=https:////horizon-futurenet.stellar.org&rpcUrl=https:////rpc-futurenet.stellar.org&passphrase=Test%20SDF%20Future%20Network%20/;%20October%202022;;`,
);
await expect(page.getByTestId("networkSelector-button")).toHaveText(
"Futurenet",
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/parseMuxedAccountPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test, expect } from "@playwright/test";

test.describe("Parse Muxed Account Page", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/account/muxed-parse");
await page.goto("/account/muxed-parse");
});

test("Loads", async ({ page }) => {
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/savedKeypairs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

test.describe("Saved Keypairs Page", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/account/saved");
await page.goto("/account/saved");
});

test("Loads", async ({ page }) => {
Expand All @@ -36,7 +36,7 @@ test.describe("Saved Keypairs Page", () => {
});
pageContext = await browserContext.newPage();

await pageContext.goto("http://localhost:3000/account/saved");
await pageContext.goto("/account/saved");

// Account 1 response (funded)
await pageContext.route(
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/savedRequests.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { MOCK_LOCAL_STORAGE } from "./mock/localStorage";

test.describe("Saved Requests Page", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/endpoints/saved");
await page.goto("/endpoints/saved");
});

test("Loads", async ({ page }) => {
Expand Down Expand Up @@ -44,7 +44,7 @@ test.describe("Saved Requests Page", () => {
storageState: MOCK_LOCAL_STORAGE,
});
pageContext = await browserContext.newPage();
await pageContext.goto("http://localhost:3000/endpoints/saved");
await pageContext.goto("/endpoints/saved");

await pageContext.waitForSelector("h1", { timeout: 5000 });
await expect(pageContext.locator("h1")).toHaveText("Saved Requests");
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/savedSmartContractIds.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { MOCK_LOCAL_STORAGE, SAVED_CONTRACT_1 } from "./mock/localStorage";

test.describe("Saved Smart Contracts Page", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/smart-contracts/saved");
await page.goto("/smart-contracts/saved");
});

test("Loads", async ({ page }) => {
Expand All @@ -28,7 +28,7 @@ test.describe("Saved contract IDs", () => {
});
pageContext = await browserContext.newPage();

await pageContext.goto("http://localhost:3000/smart-contracts/saved");
await pageContext.goto("/smart-contracts/saved");
});

test("Loads", async () => {
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/savedTransactions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { MOCK_LOCAL_STORAGE } from "./mock/localStorage";

test.describe("Saved Transactions Page", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/transaction/saved");
await page.goto("/transaction/saved");
});

test("Loads", async ({ page }) => {
Expand All @@ -30,7 +30,7 @@ test.describe("Saved Transactions Page", () => {
storageState: MOCK_LOCAL_STORAGE,
});
pageContext = await browserContext.newPage();
await pageContext.goto("http://localhost:3000/transaction/saved");
await pageContext.goto("/transaction/saved");
});

test("Loads", async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/signTransactionPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test, expect } from "@playwright/test";

test.describe("Sign Transaction Page", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/transaction/sign");
await page.goto("/transaction/sign");
});

test("Loads", async ({ page }) => {
Expand Down
7 changes: 5 additions & 2 deletions tests/e2e/signerSelector.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { test, expect, Page, Browser } from "@playwright/test";

const BASE_URL = `http://localhost:${process.env.PORT || 3000}`;

import {
MOCK_LOCAL_STORAGE,
SAVED_ACCOUNT_1,
Expand Down Expand Up @@ -43,7 +46,7 @@ test.describe("Signer Selector", () => {
test.beforeAll(async ({ browser }) => {
pageContext = await setupPageContext(
browser,
"http://localhost:3000/transaction/build",
`${BASE_URL}/transaction/build`,
);
});

Expand Down Expand Up @@ -77,7 +80,7 @@ test.describe("Signer Selector", () => {
test.beforeAll(async ({ browser }) => {
pageContext = await setupPageContext(
browser,
"http://localhost:3000/transaction/sign",
`${BASE_URL}/transaction/sign`,
);
});

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/simulateTransactionPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test, expect } from "@playwright/test";

test.describe("Simulate Transaction Page", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/transaction/simulate");
await page.goto("/transaction/simulate");
});

test("Loads", async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/smartContractsContractInfo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { mockRpcRequest } from "./mock/helpers";

test.describe("Smart Contracts: Contract Info", () => {
test.beforeEach(async ({ page }) => {
await page.goto("http://localhost:3000/smart-contracts/contract-explorer");
await page.goto("/smart-contracts/contract-explorer");
});

test("Loads", async ({ page }) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/smartContractsStorage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const setupCommonMocks = async (page: Page) => {
* Navigates to the Contract Storage tab with the mock contract loaded.
*/
const navigateToContractStorage = async (page: Page) => {
await page.goto("http://localhost:3000/smart-contracts/contract-explorer");
await page.goto("/smart-contracts/contract-explorer");
await expect(page.locator("h1")).toHaveText("Contract explorer");

await page.getByLabel("Contract ID").fill(MOCK_CONTRACT_ID);
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/smartContractsVersionHistory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test.describe("Smart Contracts: Version History", () => {
},
);

await page.goto("http://localhost:3000/smart-contracts/contract-explorer");
await page.goto("/smart-contracts/contract-explorer");
await expect(page.locator("h1")).toHaveText("Contract explorer");

// Load Contract Info
Expand Down
Loading
Loading