Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6bce56b07 |
@@ -61,12 +61,16 @@ async function importOn(page, { tab, field, secret }) {
|
||||
await page.click("btn-add-wallet-confirm");
|
||||
}
|
||||
|
||||
// Fake timers hold the timer of the flash message an import ends with, which
|
||||
// would otherwise fire after cleanupPopup() has removed the page and throw.
|
||||
beforeEach(() => {
|
||||
jest.useFakeTimers();
|
||||
chainBalance = "0.0";
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
cleanupPopup();
|
||||
jest.useRealTimers();
|
||||
});
|
||||
|
||||
describe("a popup that opened on Welcome", () => {
|
||||
|
||||
Reference in New Issue
Block a user