@rimori/playwright-testing 0.3.11-next.1 → 0.3.11-next.3

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.
@@ -6,7 +6,8 @@ const onboarding_1 = require("../helpers/e2e/onboarding");
6
6
  const create_exercise_1 = require("../helpers/e2e/create-exercise");
7
7
  (0, dotenv_1.config)();
8
8
  const RIMORI_URL = 'https://dev-app.rimori.se';
9
- const BACKEND_URL = 'http://localhost:2800';
9
+ // const BACKEND_URL = 'http://localhost:2800';
10
+ const BACKEND_URL = 'https://dev-api.rimori.se';
10
11
  class RimoriE2ETestEnvironment {
11
12
  constructor(options) {
12
13
  this.persistentUserContext = null;
@@ -224,6 +224,8 @@ class RimoriTestEnvironment {
224
224
  this.addBackendRoute('/ai/llm', { result: text }, { ...options, isStreaming: true });
225
225
  },
226
226
  mockGetVoice: (values, options) => {
227
+ // getVoice() calls ensureSessionToken() first, so mock the session endpoint too
228
+ this.addBackendRoute('/ai/session', { session_token_id: 'mock-session-token' }, { method: 'POST' });
227
229
  this.addBackendRoute('/voice/tts', values, options);
228
230
  },
229
231
  mockGetTextFromVoice: (text, options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rimori/playwright-testing",
3
- "version": "0.3.11-next.1",
3
+ "version": "0.3.11-next.3",
4
4
  "description": "Playwright testing utilities for Rimori plugins and workers",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -26,11 +26,11 @@
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@playwright/test": "^1.40.0",
29
- "@rimori/client": "2.5.18-next.0"
29
+ "@rimori/client": "2.5.18-next.4"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@playwright/test": "^1.40.0",
33
- "@rimori/client": "2.5.18-next.0",
33
+ "@rimori/client": "2.5.18-next.4",
34
34
  "@types/node": "^20.12.7",
35
35
  "rimraf": "^5.0.7",
36
36
  "typescript": "^5.7.2"