Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

chore: fix timeout for accept dialog #218

Merged
merged 1 commit into from
Dec 12, 2022
Merged
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 src/metamask/approve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const approve = (page: DappeteerPage) => async (): Promise<void> => {
await waitForOverlay(page);

// TODO: step 1 of connect chose account to connect?
await clickOnButton(page, "Next", { timeout: 100 });
await clickOnButton(page, "Next", { timeout: 1000 });
await clickOnButton(page, "Connect", { timeout: 2000 });
}, 5);
};
2 changes: 1 addition & 1 deletion src/snap/acceptDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export const acceptDialog =
await page.bringToFront();
await page.reload();
await waitForOverlay(page);
await clickOnButton(page, "Approve", { timeout: 100 });
await clickOnButton(page, "Approve", { timeout: 1000 });
}, 5);
};
2 changes: 1 addition & 1 deletion src/snap/rejectDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export const rejectDialog =
await page.bringToFront();
await page.reload();
await waitForOverlay(page);
await clickOnButton(page, "Reject", { timeout: 100 });
await clickOnButton(page, "Reject", { timeout: 1000 });
}, 5);
};