@dfinity/internet-identity-playwright 0.0.4 → 0.0.5

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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +11 -1
  3. package/package.json +6 -6
package/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2021 DFINITY LLC.
189
+ Copyright 2024 DFINITY Foundation.
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -74,6 +74,16 @@ testWithII('should sign-in with an existing new user', async ({page, iiPage}) =>
74
74
  });
75
75
  ```
76
76
 
77
+ The plugin defaults to an Internet Identity sign-in flow that does not require captcha. If you wish to set up a test that requires this validation, you can pass the option `captcha` set to `true` when initializing a new user:
78
+
79
+ ```javascript
80
+ testWithII('should sign-in with a new user when II requires a captcha', async ({page, iiPage}) => {
81
+ await page.goto('/');
82
+
83
+ await iiPage.signInWithNewIdentity({captcha: true});
84
+ });
85
+ ```
86
+
77
87
  ### 3. Wait for Internet Identity (optional)
78
88
 
79
89
  You might encounter scenarios where you perform tests against a local replica started in parallel with your tests, commonly when automating the tests in a CI environment. The library also exposes a fixture that lets you wait for Internet Identity to be ready.
@@ -166,4 +176,4 @@ While it is technically possible to use local storage instead of IndexedDB, this
166
176
  ## 🧑‍🤝‍🧑 Community
167
177
 
168
178
  - [Forum](https://forum.dfinity.org/)
169
- - [Discord](https://discord.gg/E9FxceAg2j)
179
+ - [Discord](https://discord.internetcomputer.org)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfinity/internet-identity-playwright",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A Playwright library to simplify the integration of Internet Identity authentication in E2E tests.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -53,14 +53,14 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@dfinity/eslint-config-oisy-wallet": "^0.0.6",
56
- "@types/node": "^20.14.2",
57
- "esbuild": "^0.23.1",
58
- "prettier": "^3.3.3",
59
- "prettier-plugin-organize-imports": "^4.0.0",
56
+ "@types/node": "^22.13.4",
57
+ "esbuild": "^0.25.0",
58
+ "prettier": "^3.5.1",
59
+ "prettier-plugin-organize-imports": "^4.1.0",
60
60
  "typescript": "^5.3.3"
61
61
  },
62
62
  "engines": {
63
- "node": ">=20"
63
+ "node": ">=22"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "@playwright/test": "^1.44.1"