@jskit-ai/payments-web 0.2.10 → 0.2.11

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
@@ -144,7 +144,7 @@ loading behavior. A separate browser fixture uses real Vuetify and controlled
144
144
  component inputs, without a generated application or provider connection:
145
145
 
146
146
  ```sh
147
- JSKIT_PAYMENTS_WEB_BROWSER_INTEGRATION=1 node --test --test-concurrency=1 packages/payments-web/test/paymentAccount.browser.test.js
147
+ JSKIT_PAYMENTS_WEB_BROWSER_INTEGRATION=1 npx jskit test packages/payments-web/test/paymentAccount.browser.test.js
148
148
  ```
149
149
 
150
150
  Run that command from the JSKIT repository root with its prepared browser tools.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/payments-web",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "type": "module",
5
5
  "description": "Application-owned billing views for JSKIT Vue applications.",
6
6
  "exports": {
@@ -8,7 +8,7 @@
8
8
  "./locales/en.json": "./locales/en.json"
9
9
  },
10
10
  "peerDependencies": {
11
- "@jskit-ai/kernel": "0.2.10",
11
+ "@jskit-ai/kernel": "0.2.11",
12
12
  "vue": "^3.5.13",
13
13
  "vuetify": "^4.0.0"
14
14
  },
@@ -28,6 +28,6 @@
28
28
  }
29
29
  },
30
30
  "scripts": {
31
- "test": "node --test --test-concurrency=1"
31
+ "test": "jskit test"
32
32
  }
33
33
  }
@@ -1,16 +1,16 @@
1
1
  import assert from "node:assert/strict";
2
2
  import test from "node:test";
3
3
  import { fileURLToPath } from "node:url";
4
- import { chromium, expect } from "@playwright/test";
5
- import { createChromiumLaunchOptions, startViteFixture, stopProcess } from "../../../tooling/testUtils/browserFixture.mjs";
4
+ import { expect } from "@playwright/test";
5
+ import { sharedBrowserFixture } from "../../../tooling/testUtils/browserFixture.mjs";
6
+
7
+ const openFixture = sharedBrowserFixture({ fixtureRoot: fileURLToPath(new URL("../fixtures/payment-account/", import.meta.url)) });
6
8
 
7
9
  test("billing component supports responsive layout, keyboard actions and recoverable states", {
8
10
  skip: process.env.JSKIT_PAYMENTS_WEB_BROWSER_INTEGRATION !== "1", timeout: 120_000
9
- }, async () => {
10
- const runtime = await startViteFixture({ fixtureRoot: fileURLToPath(new URL("../fixtures/payment-account/", import.meta.url)) });
11
- let browser;
11
+ }, async (t) => {
12
+ const { vite: runtime, browser } = await openFixture(t);
12
13
  try {
13
- browser = await chromium.launch(createChromiumLaunchOptions());
14
14
  const page = await browser.newPage();
15
15
  const errors = [];
16
16
  page.on("pageerror", (error) => errors.push(error.message));
@@ -62,7 +62,6 @@ test("billing component supports responsive layout, keyboard actions and recover
62
62
  await expect(billing.getByRole("button")).toHaveCount(0);
63
63
  assert.deepEqual(errors, []);
64
64
  } finally {
65
- await browser?.close();
66
- await stopProcess(runtime);
65
+ await browser.close();
67
66
  }
68
67
  });