Skip to content

Commit

Permalink
chore(CI): fix e2e metamask not found (axonweb3#1652)
Browse files Browse the repository at this point in the history
Update setup.js
Update web3_clientVersion.test.js
  • Loading branch information
sunchengzhu authored Dec 21, 2023
1 parent 077023a commit 83ad796
Show file tree
Hide file tree
Showing 4 changed files with 2,012 additions and 2,355 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/jest/setup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { bootstrap } from "@chainsafe/dappeteer";
import { RECOMMENDED_METAMASK_VERSION } from "@chainsafe/dappeteer/dist/index";
import { bootstrap } from "dappeteer-new";
import { RECOMMENDED_METAMASK_VERSION } from "dappeteer-new/dist/index";

import Config from "../config";
import createTransactionData from "../src/create_test_data/createTestDataManage";
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"license": "MIT",
"dependencies": {
"dappeteer-new": "^5.2.1",
"@chainsafe/dappeteer": "^5.2.0",
"@ethereumjs/common": "^3.1.1",
"@ethereumjs/tx": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/src/web3_clientVersion.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ describe("web3_clientVersion", () => {
() => document.getElementById("clientVersion").innerText !== "",
);

await expect(page.$eval("#clientVersion", (e) => e.innerText)).resolves.toBe("MetaMask/v10.31.0");
await expect(page.$eval("#clientVersion", (e) => e.innerText)).resolves.toBe("MetaMask/v11.0.0");
});
});
Loading

0 comments on commit 83ad796

Please sign in to comment.