w3wallets 0.8.2 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,7 +15,7 @@ npm install -D w3wallets
15
15
 
16
16
  ## Getting Started
17
17
 
18
- The `Backpack` and the `Polkadot{.js}` wallets are currently supported.
18
+ `MetaMask`, `Backpack`, and `Polkadot{.js}` wallets are currently supported.
19
19
 
20
20
  <p align="center">
21
21
  <img src="https://images.ctfassets.net/clixtyxoaeas/1ezuBGezqfIeifWdVtwU4c/d970d4cdf13b163efddddd5709164d2e/MetaMask-icon-Fox.svg" alt="Metamask Logo" width="60"/>
@@ -31,9 +31,9 @@ npx w3wallets backpack polkadotJS
31
31
 
32
32
  The unzipped files should be stored in the `.w3wallets/<wallet-name>` directory. Add them to `.gitignore`.
33
33
 
34
- #### 2. Wrap your fixture `withWallets`
34
+ #### 2. Wrap your fixture with `withWallets`
35
35
 
36
- Install needed wallets into the chromium using `withWallets`.
36
+ Install the required wallets into Chromium using `withWallets`.
37
37
 
38
38
  ```ts
39
39
  // your-fixture.ts
@@ -57,7 +57,7 @@ export { expect } from "@playwright/test";
57
57
 
58
58
  #### 3. Use the installed wallets in tests
59
59
 
60
- Most often, you will use the following methods:
60
+ Most commonly, you will use the following methods:
61
61
 
62
62
  1. `onboard`: to set up your wallet
63
63
  2. `approve`: for operations that confirm actions
package/dist/index.js CHANGED
@@ -230,10 +230,7 @@ var Metamask = class extends Wallet {
230
230
  await this.page.getByTestId("metametrics-no-thanks").click();
231
231
  await this.page.getByTestId("onboarding-complete-done").click();
232
232
  await this.page.getByTestId("pin-extension-done").click();
233
- await this.page.getByTestId("unlock-password").fill(password);
234
- await this.page.getByTestId("unlock-submit").click();
235
- await this.page.waitForTimeout(1e3);
236
- await this.clickTopRightCornerToCloseAllTheMarketingBullshit();
233
+ await this.page.getByTestId("not-now-button").click();
237
234
  }
238
235
  async switchAccount(accountNameOrAddress) {
239
236
  await this.page.getByTestId("account-menu-icon").click();
package/dist/index.mjs CHANGED
@@ -196,10 +196,7 @@ var Metamask = class extends Wallet {
196
196
  await this.page.getByTestId("metametrics-no-thanks").click();
197
197
  await this.page.getByTestId("onboarding-complete-done").click();
198
198
  await this.page.getByTestId("pin-extension-done").click();
199
- await this.page.getByTestId("unlock-password").fill(password);
200
- await this.page.getByTestId("unlock-submit").click();
201
- await this.page.waitForTimeout(1e3);
202
- await this.clickTopRightCornerToCloseAllTheMarketingBullshit();
199
+ await this.page.getByTestId("not-now-button").click();
203
200
  }
204
201
  async switchAccount(accountNameOrAddress) {
205
202
  await this.page.getByTestId("account-menu-icon").click();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "w3wallets",
3
3
  "description": "browser wallets for playwright",
4
- "version": "0.8.2",
4
+ "version": "0.8.3",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "homepage": "https://github.com/Maksandre/w3wallets",