diff --git a/packages/webui/tests/agents.test.mjs b/packages/webui/tests/agents.test.mjs index d5e9ceed8..d16b92078 100644 --- a/packages/webui/tests/agents.test.mjs +++ b/packages/webui/tests/agents.test.mjs @@ -218,8 +218,9 @@ test('row 194 N5: agents.js is served as JavaScript and index.html loads it once const s = await setup(t); const js = await get(s, '/agents.js'); assert.equal(js.status, 200); assert.match(js.type, /^text\/javascript/); - // F3 adds the agent restart receipt and the thread test that Settings > Routing uses. - assert.match(js.text, /window\.MosaicAgents = Object\.freeze\(\{ section, restartMarkup, isThread: definition => threadDefinitions\.has\(definition\) \}\)/); + // F3 adds the agent restart receipt and the thread test that Settings > Routing uses; SP19 the + // restart chain the agent drawer calls. + assert.match(js.text, /window\.MosaicAgents = Object\.freeze\(\{ section, restartMarkup, restart: restartAgent, isThread: definition => threadDefinitions\.has\(definition\) \}\)/); assert.match(js.text, /Agent actions are unavailable here\. Use mosaic org instance from the instance CLI\./); const html = await get(s, '/'); assert.equal(html.text.match(/