mirror of
https://github.com/zhigang1992/xverse-web-extension.git
synced 2026-04-29 13:15:45 +08:00
Add timeouts in e2e before changing network to avoid rate limiting (#558)
This commit is contained in:
@@ -1097,6 +1097,9 @@ export default class Wallet {
|
||||
|
||||
await this.checkTestnetUrls(true);
|
||||
|
||||
// Wait for the network to be switched so that API doesn't fail because of the rate limiting
|
||||
await this.page.waitForTimeout(15000);
|
||||
|
||||
await this.buttonSave.click();
|
||||
await expect(this.buttonNetwork).toBeVisible({ timeout: 30000 });
|
||||
await expect(this.buttonNetwork).toHaveText('NetworkTestnet');
|
||||
@@ -1116,6 +1119,9 @@ export default class Wallet {
|
||||
|
||||
await this.checkTestnetUrls(false);
|
||||
|
||||
// Wait for the network to be switched so that API doesn't fail because of the rate limiting
|
||||
await this.page.waitForTimeout(15000);
|
||||
|
||||
await this.buttonSave.click();
|
||||
await expect(this.buttonNetwork).toBeVisible({ timeout: 30000 });
|
||||
await expect(this.buttonNetwork).toHaveText('NetworkMainnet');
|
||||
|
||||
Reference in New Issue
Block a user