Add timeouts in e2e before changing network to avoid rate limiting (#558)

This commit is contained in:
Den
2024-09-03 17:28:17 +02:00
committed by GitHub
parent 4314523ddb
commit 0588fee5cd

View File

@@ -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');