Skip to content

Commit

Permalink
Updated Keplr wallet and more time for pools to load (#3826)
Browse files Browse the repository at this point in the history
* Updated Keplr manifest to 12.125
* Wait for OSMO/USDC pool
  • Loading branch information
yury-dubinin committed Sep 4, 2024
1 parent ed391f2 commit 70c9718
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ packages/web/e2e/keplr-extension-manifest
# Vim swap files
.*.swp
.*.swo
packages/web/e2e/metamask-extension-manifest/
Binary file not shown.
8 changes: 6 additions & 2 deletions packages/web/e2e/pages/pools-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ export class PoolsPage extends BasePage {
await this.page.goto("/");
await this.page.waitForTimeout(2000);
await this.poolsLink.click();
// we expect that after 4 seconds tokens are loaded and any failure after this point should be considered a bug.
await this.page.waitForTimeout(4000);
await this.page.waitForTimeout(2000);
// Sometimes pools take longer to load
// we expect that after 10 seconds tokens are loaded and any failure after this point should be considered a bug.
// 1464 is an OSMO/USDC pool
const locRows = '//tr/td/a[contains(@href, "pool/1464")]/../..';
await this.page.locator(locRows).hover({ timeout: 10000 });
await super.printUrl();
}

Expand Down
14 changes: 13 additions & 1 deletion packages/web/e2e/unzip-extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,22 @@ export class UnzipExtension {
// Unzip keplr-extension-manifest
const pathToZip = path.join(
__dirname,
"./keplr-extension-manifest-v3-v0.12.119.zip"
"./keplr-extension-manifest-v3-v0.12.125.zip"
);
const pathToExtension = path.join(__dirname, "./keplr-extension-manifest");
decompress(pathToZip, pathToExtension);
return pathToExtension;
}

getPathToMetaMaskExtension() {
console.log("Unzip Wallet Extension before tests.");
// Unzip metamask-extension-manifest
const pathToZip = path.join(__dirname, "./metamask-chrome-12.1.1.zip");
const pathToExtension = path.join(
__dirname,
"./metamask-extension-manifest"
);
decompress(pathToZip, pathToExtension);
return pathToExtension;
}
}

0 comments on commit 70c9718

Please sign in to comment.