Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeesunikim committed Jan 17, 2025
1 parent 242d42b commit 70458fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/feeBumpPage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ test.describe("Fee Bump Page", () => {
await expect(signButton).toBeVisible();
await signButton.click();

await page.waitForURL("**/transaction/sign");

await expect(page.locator("h1")).toHaveText("Transaction Overview");
await expect(page.getByLabel("Transaction Envelope XDR")).toHaveText(
MOCK_XDR,
Expand All @@ -76,6 +78,8 @@ test.describe("Fee Bump Page", () => {
await expect(viewButton).toBeVisible();
await viewButton.click();

await page.waitForURL("**/xdr");

await expect(page.locator("h1")).toHaveText("View XDR");
await expect(page.getByLabel("Base-64 encoded XDR")).toHaveText(MOCK_XDR);
});
Expand Down
2 changes: 2 additions & 0 deletions tests/savedTransactions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ test.describe("Saved Transactions Page", () => {

// View in submitter
await submitItem.getByText("View in submitter").click();
await pageContext.waitForURL("**/transaction/submit");

await expect(pageContext.locator("h1")).toHaveText("Submit Transaction");
await expect(
Expand Down Expand Up @@ -106,6 +107,7 @@ test.describe("Saved Transactions Page", () => {
// View in builder
await buildItem.getByText("View in builder", { exact: true }).click();

await pageContext.waitForURL("**/transaction/build");
await expect(pageContext.locator("h1")).toHaveText("Build Transaction");

// Params
Expand Down

0 comments on commit 70458fc

Please sign in to comment.