@cosmicdrift/kumiko-testing 0.306.0 → 0.307.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-testing",
3
- "version": "0.306.0",
3
+ "version": "0.307.0",
4
4
  "description": "Test template for Kumiko apps: per-flow seedTenant, app test stack, canonical test preloads, bunfig generator and integration runner.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -63,9 +63,9 @@
63
63
  "kumiko-testing": "./bin/kumiko-testing.ts"
64
64
  },
65
65
  "dependencies": {
66
- "@cosmicdrift/kumiko-bundled-features": "0.306.0",
67
- "@cosmicdrift/kumiko-dev-server": "0.306.0",
68
- "@cosmicdrift/kumiko-framework": "0.306.0",
66
+ "@cosmicdrift/kumiko-bundled-features": "0.307.0",
67
+ "@cosmicdrift/kumiko-dev-server": "0.307.0",
68
+ "@cosmicdrift/kumiko-framework": "0.307.0",
69
69
  "zod": "^4.4.3"
70
70
  },
71
71
  "peerDependencies": {
package/src/changes.json CHANGED
@@ -1,4 +1,9 @@
1
1
  [
2
+ {
3
+ "version": "0.307.0",
4
+ "type": "fix",
5
+ "title": "seedTenant loginAs switches users via clearSession"
6
+ },
2
7
  {
3
8
  "version": "0.306.0",
4
9
  "type": "improvement",
@@ -16,7 +16,7 @@ import {
16
16
  type SeedTenantOptions,
17
17
  withSession,
18
18
  } from "../seed-types";
19
- import { createHttpApi, loginViaApi } from "./auth-kit";
19
+ import { clearSession, createHttpApi, loginViaApi } from "./auth-kit";
20
20
  import { SEED_ROUTES } from "./constants";
21
21
  import { seedRouteHeaders } from "./mail-capture";
22
22
  import {
@@ -93,7 +93,7 @@ export async function provideSeedTenant(
93
93
  };
94
94
 
95
95
  const loginAs = async (page: Page, user: SeededUser): Promise<void> => {
96
- await page.context().clearCookies();
96
+ await clearSession(page);
97
97
  await loginViaApi(page.context().request, user);
98
98
  };
99
99