Skip to content

Commit

Permalink
fix: updated wait in swap page navigate
Browse files Browse the repository at this point in the history
  • Loading branch information
ggilchrist-ledger committed Jul 18, 2023
1 parent c74da01 commit d53b046
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/ledger-live-desktop/tests/models/SwapPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ export class SwapPage {

async navigate() {
await this.swapMenuButton.click();
}

async waitForSwapFormToLoad() {
await this.maxSpendableToggle.waitFor({ state: "visible" });
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ test.describe.parallel("Swap", () => {

await test.step("Open Swap Page", async () => {
await swapPage.navigate();
await swapPage.waitForSwapFormToLoad();
await expect.soft(page).toHaveScreenshot("open-swap-page.png");
});

Expand Down

0 comments on commit d53b046

Please sign in to comment.