Skip to content

Commit adc5d15

Browse files
docs: update E2E - we deprecated Internet Identity for local dev (#712)
* docs: update E2E - we deprecated Internet Identity for local dev Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> * πŸ“„ Update LLMs.txt snapshot for PR review --------- Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 192b301 commit adc5d15

2 files changed

Lines changed: 22 additions & 11 deletions

File tree

β€Ž.llms-snapshots/llms-full.txtβ€Ž

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6842,18 +6842,22 @@ That being said, integrating authentication is easier in Playwright given that a
68426842

68436843
## Authentication
68446844

6845-
If your application require authentication, we recommend using the Playwright plugin for Internet Identity maintained by the DFINITY foundation:
6845+
If your application require authentication, we recommend using our Playwright plugin for sign-in in development:
68466846

6847-
πŸ‘‰ [github.com/dfinity/internet-identity-playwright](https://github.com/dfinity/internet-identity-playwright)
6847+
πŸ‘‰ [github.com/junobuild/emulator-playwright](https://github.com/junobuild/emulator-playwright)
68486848

6849-
It handles the full login flow programmatically, allowing your tests to sign in without user interaction.
6849+
It handles the full login flow programmatically, allowing your tests to sign in without user interaction. Under the hood, it uses the `dev` option of the `signIn` function:
6850+
6851+
```
6852+
import { signIn } from "@junobuild/core";await signIn({ dev: {} });
6853+
```
68506854

68516855
### Example usage
68526856

68536857
After installing the plugin, you can write a test like this:
68546858

68556859
```
6856-
import { testWithII } from "@dfinity/internet-identity-playwright";testWithII("should sign-in with a new user", async ({ page, iiPage }) => { await page.goto("/"); await iiPage.signInWithNewIdentity();});
6860+
import { initSatelliteSuite } from "@junobuild/emulator-playwright";import { test } from "@playwright/test";const getPages = initSatelliteSuite();test("...", async () => { const { satelliteId, cliPage } = getPages();});
68576861
```
68586862

68596863
---

β€Ždocs/guides/e2e.mdβ€Ž

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,30 @@ That being said, integrating authentication is easier in Playwright given that a
2424

2525
## Authentication
2626

27-
If your application require authentication, we recommend using the Playwright plugin for Internet Identity maintained by the DFINITY foundation:
27+
If your application require authentication, we recommend using our Playwright plugin for sign-in in development:
2828

29-
πŸ‘‰ [github.com/dfinity/internet-identity-playwright](https://github.com/dfinity/internet-identity-playwright)
29+
πŸ‘‰ [github.com/junobuild/emulator-playwright](https://github.com/junobuild/emulator-playwright)
3030

31-
It handles the full login flow programmatically, allowing your tests to sign in without user interaction.
31+
It handles the full login flow programmatically, allowing your tests to sign in without user interaction. Under the hood, it uses the `dev` option of the `signIn` function:
32+
33+
```typescript
34+
import { signIn } from "@junobuild/core";
35+
36+
await signIn({ dev: {} });
37+
```
3238

3339
### Example usage
3440

3541
After installing the plugin, you can write a test like this:
3642

3743
```typescript
38-
import { testWithII } from "@dfinity/internet-identity-playwright";
44+
import { initSatelliteSuite } from "@junobuild/emulator-playwright";
45+
import { test } from "@playwright/test";
3946

40-
testWithII("should sign-in with a new user", async ({ page, iiPage }) => {
41-
await page.goto("/");
47+
const getPages = initSatelliteSuite();
4248

43-
await iiPage.signInWithNewIdentity();
49+
test("...", async () => {
50+
const { satelliteId, cliPage } = getPages();
4451
});
4552
```
4653

0 commit comments

Comments
Β (0)