(page)
| 333 | } |
| 334 | |
| 335 | async function k11(page) { |
| 336 | await open(page, PROJECT, 'galaxy'); |
| 337 | await galaxyReady(page); |
| 338 | await loadModel(page); |
| 339 | await openChat(page); |
| 340 | await shot(page, 'K11', 'all-graph-before', 'Galaxy shows the whole graph (All graph); nothing is selected.'); |
| 341 | const mark = await markWorker(page); |
| 342 | const german = await ask(page, 'was kannst du mir über den code sagen'); |
| 343 | const english = await ask(page, 'test'); |
| 344 | await shot(page, 'K11', 'after-questions', 'Both questions get the chat\'s own reply saying what to select; the model was not asked.'); |
| 345 | const sent = (await workerMessages(page)).slice(mark).filter((entry) => entry.kind === 'chat' || entry.kind === 'count'); |
| 346 | check('K11', 'Without context the model is not called and the reply says what to select (de/en)', sent.length === 0 |
| 347 | && /Wähle einen Knoten in Galaxy oder einen Teil in Architecture, oder öffne eine Datei in Explore/.test(german) && /Select a node in Galaxy or a part in Architecture, or open a file in Explore/.test(english), |
| 348 | { workerMessages: sent.length, german: german.slice(0, 220), english: english.slice(0, 200) }); |
| 349 | } |
| 350 | |
| 351 | async function openWorkflowFile(page) { |
| 352 | await open(page, PROJECT, 'explore'); |
nothing calls this directly
no test coverage detected