@usehumanless/playwright 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +51 -2
- package/dist/index.cjs +99 -0
- package/dist/index.d.cts +47 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +70 -0
- package/package.json +73 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ninety Nine Oranges
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,52 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @usehumanless/playwright
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**A Playwright fixture that gives every test a disposable verification identity (email inbox, optional TOTP secret), waits for the parsed OTP code or magic link, and deletes the identity after the test, pass or fail.**
|
|
4
|
+
|
|
5
|
+
> Use Humanless only for apps you own or are authorized to test. Never use it to bypass verification on third-party services or to create accounts in bulk.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i -D @usehumanless/playwright
|
|
9
|
+
export HUMANLESS_API_KEY=hl_live_... # https://api.usehumanless.com/app
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
```ts
|
|
13
|
+
import { test, expect } from "@usehumanless/playwright";
|
|
14
|
+
|
|
15
|
+
test("sign up with an email code", async ({ page, identity }) => {
|
|
16
|
+
await page.goto("http://localhost:3000/signup");
|
|
17
|
+
await page.getByLabel("Email").fill(identity.email!);
|
|
18
|
+
const since = Date.now();
|
|
19
|
+
await page.getByRole("button", { name: "Send code" }).click();
|
|
20
|
+
const { code } = await identity.waitForCode({ since });
|
|
21
|
+
await page.getByLabel("Code").fill(code);
|
|
22
|
+
await expect(page.getByText("Welcome")).toBeVisible();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
test.describe("2FA", () => {
|
|
26
|
+
test.use({ identityOptions: { channels: ["email", "totp"] } });
|
|
27
|
+
|
|
28
|
+
test("enroll an authenticator", async ({ page, identity }) => {
|
|
29
|
+
// Paste identity.totp_secret where your app shows its setup key, then:
|
|
30
|
+
const { code } = await identity.totp(); // never a code that expires within 3 s
|
|
31
|
+
await page.getByLabel("Authenticator code").fill(code);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
test("magic link", async ({ page, identity }) => {
|
|
36
|
+
// ...request a sign-in link for identity.email...
|
|
37
|
+
const { url } = await identity.waitForLink();
|
|
38
|
+
await page.goto(url);
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Fixtures
|
|
43
|
+
|
|
44
|
+
| Fixture | Description |
|
|
45
|
+
| --- | --- |
|
|
46
|
+
| `identity` | Created on first use with `identityOptions` (default `{ channels: ["email"] }`), deleted after the test. Has `waitForCode`, `waitForLink`, `waitForMessage`, `totp({ fresh })` and `delete()`. The id is added to the test's annotations. |
|
|
47
|
+
| `newIdentity(opts?)` | Creates more identities in one test (inviter and invitee, for example); all are deleted afterwards. |
|
|
48
|
+
| `humanless` | The configured `Humanless` client from the `humanless` package. |
|
|
49
|
+
|
|
50
|
+
Options (`test.use`): `identityOptions` (`channels`, `domain`, `ttl_seconds`) and `humanlessOptions` (`apiKey`, `baseUrl`, `fetch`; `apiKey` defaults to `HUMANLESS_API_KEY`).
|
|
51
|
+
|
|
52
|
+
Docs: https://usehumanless.com/docs · License: MIT
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
Humanless: () => import_humanless2.Humanless,
|
|
24
|
+
HumanlessError: () => import_humanless2.HumanlessError,
|
|
25
|
+
HumanlessTimeoutError: () => import_humanless2.HumanlessTimeoutError,
|
|
26
|
+
bindIdentity: () => bindIdentity,
|
|
27
|
+
expect: () => import_test.expect,
|
|
28
|
+
test: () => test,
|
|
29
|
+
withIdentity: () => import_humanless2.withIdentity
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(src_exports);
|
|
32
|
+
var import_test = require("@playwright/test");
|
|
33
|
+
var import_humanless = require("humanless");
|
|
34
|
+
var import_humanless2 = require("humanless");
|
|
35
|
+
var TOTP_MIN_SECONDS = 3;
|
|
36
|
+
function bindIdentity(hl, idn) {
|
|
37
|
+
const id = idn.identity_id;
|
|
38
|
+
return {
|
|
39
|
+
...idn,
|
|
40
|
+
waitForCode: (o = {}) => hl.waitForCode({ ...o, identityId: id }),
|
|
41
|
+
waitForLink: (o = {}) => hl.waitForLink({ ...o, identityId: id }),
|
|
42
|
+
waitForMessage: (o = {}) => hl.waitForMessage({ ...o, identityId: id }),
|
|
43
|
+
async totp({ fresh = true } = {}) {
|
|
44
|
+
const t = await hl.getTotp(id);
|
|
45
|
+
if (!fresh || t.seconds_remaining > TOTP_MIN_SECONDS) return t;
|
|
46
|
+
await new Promise((r) => setTimeout(r, t.seconds_remaining * 1e3 + 250));
|
|
47
|
+
return hl.getTotp(id);
|
|
48
|
+
},
|
|
49
|
+
async delete() {
|
|
50
|
+
await hl.deleteIdentity(id);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
var test = import_test.test.extend({
|
|
55
|
+
humanlessOptions: [{}, { option: true }],
|
|
56
|
+
identityOptions: [{ channels: ["email"] }, { option: true }],
|
|
57
|
+
humanless: async ({ humanlessOptions }, use) => {
|
|
58
|
+
const apiKey = humanlessOptions.apiKey ?? process.env.HUMANLESS_API_KEY;
|
|
59
|
+
if (!apiKey) {
|
|
60
|
+
throw new Error(
|
|
61
|
+
"@usehumanless/playwright: set HUMANLESS_API_KEY (or test.use({ humanlessOptions: { apiKey } })). Get a key at https://api.usehumanless.com/app"
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
await use(new import_humanless.Humanless({ ...humanlessOptions, apiKey }));
|
|
65
|
+
},
|
|
66
|
+
newIdentity: async ({ humanless }, use) => {
|
|
67
|
+
const created = [];
|
|
68
|
+
try {
|
|
69
|
+
await use(async (opts = { channels: ["email"] }) => {
|
|
70
|
+
const idn = await humanless.createIdentity(opts);
|
|
71
|
+
created.push(idn.identity_id);
|
|
72
|
+
return bindIdentity(humanless, idn);
|
|
73
|
+
});
|
|
74
|
+
} finally {
|
|
75
|
+
await Promise.all(created.map((id) => humanless.deleteIdentity(id).catch(() => {
|
|
76
|
+
})));
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
identity: async ({ humanless, identityOptions }, use, testInfo) => {
|
|
80
|
+
const idn = await humanless.createIdentity(identityOptions);
|
|
81
|
+
testInfo.annotations.push({ type: "humanless.identity", description: idn.identity_id });
|
|
82
|
+
try {
|
|
83
|
+
await use(bindIdentity(humanless, idn));
|
|
84
|
+
} finally {
|
|
85
|
+
await humanless.deleteIdentity(idn.identity_id).catch(() => {
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
91
|
+
0 && (module.exports = {
|
|
92
|
+
Humanless,
|
|
93
|
+
HumanlessError,
|
|
94
|
+
HumanlessTimeoutError,
|
|
95
|
+
bindIdentity,
|
|
96
|
+
expect,
|
|
97
|
+
test,
|
|
98
|
+
withIdentity
|
|
99
|
+
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as _playwright_test from '@playwright/test';
|
|
2
|
+
export { expect } from '@playwright/test';
|
|
3
|
+
import { HumanlessOptions, CreateIdentityOptions, Humanless, Identity, WaitOptions, Message, TotpCode } from 'humanless';
|
|
4
|
+
export { CreateIdentityOptions, Humanless, HumanlessError, HumanlessTimeoutError, Identity, Message, TotpCode, WaitOptions, withIdentity } from 'humanless';
|
|
5
|
+
|
|
6
|
+
/** Wait options for a fixture identity (the identity id is filled in for you). */
|
|
7
|
+
type IdentityWaitOptions = Omit<WaitOptions, "identityId">;
|
|
8
|
+
interface TestIdentity extends Identity {
|
|
9
|
+
/** Next message that contains an OTP code. Pass `since: Date.now()` taken just before you trigger the send. */
|
|
10
|
+
waitForCode(opts?: IdentityWaitOptions): Promise<Message & {
|
|
11
|
+
code: string;
|
|
12
|
+
}>;
|
|
13
|
+
/** Next message that contains a magic link. */
|
|
14
|
+
waitForLink(opts?: IdentityWaitOptions): Promise<Message & {
|
|
15
|
+
url: string;
|
|
16
|
+
}>;
|
|
17
|
+
/** Next message of any type (check `type`, `code`, `url`, `raw_snippet`). */
|
|
18
|
+
waitForMessage(opts?: IdentityWaitOptions): Promise<Message>;
|
|
19
|
+
/**
|
|
20
|
+
* Current TOTP code (identity must include the "totp" channel). By default, when 3 s or less remain in
|
|
21
|
+
* the 30 s window, waits for the next code so it is still valid when the app checks it.
|
|
22
|
+
*/
|
|
23
|
+
totp(opts?: {
|
|
24
|
+
fresh?: boolean;
|
|
25
|
+
}): Promise<TotpCode>;
|
|
26
|
+
/** Deletes the identity now (idempotent; the fixture also deletes it after the test). */
|
|
27
|
+
delete(): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
interface HumanlessFixtureOptions {
|
|
30
|
+
/** Client options. `apiKey` defaults to process.env.HUMANLESS_API_KEY. */
|
|
31
|
+
humanlessOptions: Partial<HumanlessOptions>;
|
|
32
|
+
/** Options for the `identity` fixture. Default `{ channels: ["email"] }`. Override with `test.use({ identityOptions: ... })`. */
|
|
33
|
+
identityOptions: CreateIdentityOptions;
|
|
34
|
+
}
|
|
35
|
+
interface HumanlessFixtures {
|
|
36
|
+
/** A configured client. */
|
|
37
|
+
humanless: Humanless;
|
|
38
|
+
/** A fresh identity for this test, deleted after it (pass or fail). */
|
|
39
|
+
identity: TestIdentity;
|
|
40
|
+
/** Creates extra identities (e.g. inviter + invitee); every one is deleted after the test. */
|
|
41
|
+
newIdentity: (opts?: CreateIdentityOptions) => Promise<TestIdentity>;
|
|
42
|
+
}
|
|
43
|
+
/** Wraps a plain identity with helpers bound to its id. */
|
|
44
|
+
declare function bindIdentity(hl: Humanless, idn: Identity): TestIdentity;
|
|
45
|
+
declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArgs & _playwright_test.PlaywrightTestOptions & HumanlessFixtures & HumanlessFixtureOptions, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions>;
|
|
46
|
+
|
|
47
|
+
export { type HumanlessFixtureOptions, type HumanlessFixtures, type IdentityWaitOptions, type TestIdentity, bindIdentity, test };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as _playwright_test from '@playwright/test';
|
|
2
|
+
export { expect } from '@playwright/test';
|
|
3
|
+
import { HumanlessOptions, CreateIdentityOptions, Humanless, Identity, WaitOptions, Message, TotpCode } from 'humanless';
|
|
4
|
+
export { CreateIdentityOptions, Humanless, HumanlessError, HumanlessTimeoutError, Identity, Message, TotpCode, WaitOptions, withIdentity } from 'humanless';
|
|
5
|
+
|
|
6
|
+
/** Wait options for a fixture identity (the identity id is filled in for you). */
|
|
7
|
+
type IdentityWaitOptions = Omit<WaitOptions, "identityId">;
|
|
8
|
+
interface TestIdentity extends Identity {
|
|
9
|
+
/** Next message that contains an OTP code. Pass `since: Date.now()` taken just before you trigger the send. */
|
|
10
|
+
waitForCode(opts?: IdentityWaitOptions): Promise<Message & {
|
|
11
|
+
code: string;
|
|
12
|
+
}>;
|
|
13
|
+
/** Next message that contains a magic link. */
|
|
14
|
+
waitForLink(opts?: IdentityWaitOptions): Promise<Message & {
|
|
15
|
+
url: string;
|
|
16
|
+
}>;
|
|
17
|
+
/** Next message of any type (check `type`, `code`, `url`, `raw_snippet`). */
|
|
18
|
+
waitForMessage(opts?: IdentityWaitOptions): Promise<Message>;
|
|
19
|
+
/**
|
|
20
|
+
* Current TOTP code (identity must include the "totp" channel). By default, when 3 s or less remain in
|
|
21
|
+
* the 30 s window, waits for the next code so it is still valid when the app checks it.
|
|
22
|
+
*/
|
|
23
|
+
totp(opts?: {
|
|
24
|
+
fresh?: boolean;
|
|
25
|
+
}): Promise<TotpCode>;
|
|
26
|
+
/** Deletes the identity now (idempotent; the fixture also deletes it after the test). */
|
|
27
|
+
delete(): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
interface HumanlessFixtureOptions {
|
|
30
|
+
/** Client options. `apiKey` defaults to process.env.HUMANLESS_API_KEY. */
|
|
31
|
+
humanlessOptions: Partial<HumanlessOptions>;
|
|
32
|
+
/** Options for the `identity` fixture. Default `{ channels: ["email"] }`. Override with `test.use({ identityOptions: ... })`. */
|
|
33
|
+
identityOptions: CreateIdentityOptions;
|
|
34
|
+
}
|
|
35
|
+
interface HumanlessFixtures {
|
|
36
|
+
/** A configured client. */
|
|
37
|
+
humanless: Humanless;
|
|
38
|
+
/** A fresh identity for this test, deleted after it (pass or fail). */
|
|
39
|
+
identity: TestIdentity;
|
|
40
|
+
/** Creates extra identities (e.g. inviter + invitee); every one is deleted after the test. */
|
|
41
|
+
newIdentity: (opts?: CreateIdentityOptions) => Promise<TestIdentity>;
|
|
42
|
+
}
|
|
43
|
+
/** Wraps a plain identity with helpers bound to its id. */
|
|
44
|
+
declare function bindIdentity(hl: Humanless, idn: Identity): TestIdentity;
|
|
45
|
+
declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArgs & _playwright_test.PlaywrightTestOptions & HumanlessFixtures & HumanlessFixtureOptions, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions>;
|
|
46
|
+
|
|
47
|
+
export { type HumanlessFixtureOptions, type HumanlessFixtures, type IdentityWaitOptions, type TestIdentity, bindIdentity, test };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { test as base, expect } from "@playwright/test";
|
|
3
|
+
import {
|
|
4
|
+
Humanless
|
|
5
|
+
} from "humanless";
|
|
6
|
+
import { Humanless as Humanless2, HumanlessError, HumanlessTimeoutError, withIdentity } from "humanless";
|
|
7
|
+
var TOTP_MIN_SECONDS = 3;
|
|
8
|
+
function bindIdentity(hl, idn) {
|
|
9
|
+
const id = idn.identity_id;
|
|
10
|
+
return {
|
|
11
|
+
...idn,
|
|
12
|
+
waitForCode: (o = {}) => hl.waitForCode({ ...o, identityId: id }),
|
|
13
|
+
waitForLink: (o = {}) => hl.waitForLink({ ...o, identityId: id }),
|
|
14
|
+
waitForMessage: (o = {}) => hl.waitForMessage({ ...o, identityId: id }),
|
|
15
|
+
async totp({ fresh = true } = {}) {
|
|
16
|
+
const t = await hl.getTotp(id);
|
|
17
|
+
if (!fresh || t.seconds_remaining > TOTP_MIN_SECONDS) return t;
|
|
18
|
+
await new Promise((r) => setTimeout(r, t.seconds_remaining * 1e3 + 250));
|
|
19
|
+
return hl.getTotp(id);
|
|
20
|
+
},
|
|
21
|
+
async delete() {
|
|
22
|
+
await hl.deleteIdentity(id);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
var test = base.extend({
|
|
27
|
+
humanlessOptions: [{}, { option: true }],
|
|
28
|
+
identityOptions: [{ channels: ["email"] }, { option: true }],
|
|
29
|
+
humanless: async ({ humanlessOptions }, use) => {
|
|
30
|
+
const apiKey = humanlessOptions.apiKey ?? process.env.HUMANLESS_API_KEY;
|
|
31
|
+
if (!apiKey) {
|
|
32
|
+
throw new Error(
|
|
33
|
+
"@usehumanless/playwright: set HUMANLESS_API_KEY (or test.use({ humanlessOptions: { apiKey } })). Get a key at https://api.usehumanless.com/app"
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
await use(new Humanless({ ...humanlessOptions, apiKey }));
|
|
37
|
+
},
|
|
38
|
+
newIdentity: async ({ humanless }, use) => {
|
|
39
|
+
const created = [];
|
|
40
|
+
try {
|
|
41
|
+
await use(async (opts = { channels: ["email"] }) => {
|
|
42
|
+
const idn = await humanless.createIdentity(opts);
|
|
43
|
+
created.push(idn.identity_id);
|
|
44
|
+
return bindIdentity(humanless, idn);
|
|
45
|
+
});
|
|
46
|
+
} finally {
|
|
47
|
+
await Promise.all(created.map((id) => humanless.deleteIdentity(id).catch(() => {
|
|
48
|
+
})));
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
identity: async ({ humanless, identityOptions }, use, testInfo) => {
|
|
52
|
+
const idn = await humanless.createIdentity(identityOptions);
|
|
53
|
+
testInfo.annotations.push({ type: "humanless.identity", description: idn.identity_id });
|
|
54
|
+
try {
|
|
55
|
+
await use(bindIdentity(humanless, idn));
|
|
56
|
+
} finally {
|
|
57
|
+
await humanless.deleteIdentity(idn.identity_id).catch(() => {
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
Humanless2 as Humanless,
|
|
64
|
+
HumanlessError,
|
|
65
|
+
HumanlessTimeoutError,
|
|
66
|
+
bindIdentity,
|
|
67
|
+
expect,
|
|
68
|
+
test,
|
|
69
|
+
withIdentity
|
|
70
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,75 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usehumanless/playwright",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Playwright fixture for Humanless: a disposable verification identity per test (email inbox, optional TOTP), auto-deleted, with waitForCode / waitForLink / totp helpers. For apps you own or are authorized to test.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"otp",
|
|
7
|
+
"2fa",
|
|
8
|
+
"email-testing",
|
|
9
|
+
"sms-testing",
|
|
10
|
+
"totp",
|
|
11
|
+
"playwright",
|
|
12
|
+
"e2e",
|
|
13
|
+
"mcp",
|
|
14
|
+
"ai-agents",
|
|
15
|
+
"magic-link",
|
|
16
|
+
"verification",
|
|
17
|
+
"playwright-fixture",
|
|
18
|
+
"fixture",
|
|
19
|
+
"qa",
|
|
20
|
+
"humanless"
|
|
21
|
+
],
|
|
22
|
+
"homepage": "https://usehumanless.com/docs/playwright",
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/usehumanless/humanless-js/issues",
|
|
25
|
+
"email": "hello@usehumanless.com"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/usehumanless/humanless-js.git",
|
|
30
|
+
"directory": "playwright"
|
|
31
|
+
},
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"author": "Ninety Nine Oranges (https://usehumanless.com)",
|
|
34
|
+
"type": "module",
|
|
35
|
+
"sideEffects": false,
|
|
36
|
+
"main": "./dist/index.cjs",
|
|
37
|
+
"module": "./dist/index.js",
|
|
38
|
+
"types": "./dist/index.d.ts",
|
|
39
|
+
"exports": {
|
|
40
|
+
".": {
|
|
41
|
+
"import": {
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
43
|
+
"default": "./dist/index.js"
|
|
44
|
+
},
|
|
45
|
+
"require": {
|
|
46
|
+
"types": "./dist/index.d.cts",
|
|
47
|
+
"default": "./dist/index.cjs"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"./package.json": "./package.json"
|
|
51
|
+
},
|
|
52
|
+
"files": [
|
|
53
|
+
"dist",
|
|
54
|
+
"README.md",
|
|
55
|
+
"LICENSE"
|
|
56
|
+
],
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": ">=18"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "tsup",
|
|
62
|
+
"typecheck": "tsc --noEmit",
|
|
63
|
+
"test": "playwright test -c playwright.config.ts",
|
|
64
|
+
"prepublishOnly": "npm run typecheck && npm run build && npm test"
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"humanless": "^0.1.1"
|
|
68
|
+
},
|
|
69
|
+
"peerDependencies": {
|
|
70
|
+
"@playwright/test": ">=1.40.0"
|
|
71
|
+
},
|
|
72
|
+
"publishConfig": {
|
|
73
|
+
"access": "public"
|
|
74
|
+
}
|
|
75
|
+
}
|