@rimori/playwright-testing 0.3.11-next.1 → 0.3.11-next.2
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.
|
@@ -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.
|
|
3
|
+
"version": "0.3.11-next.2",
|
|
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.
|
|
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.
|
|
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"
|