(page)
| 158 | return ok; |
| 159 | } |
| 160 | async function openChat(page) { |
| 161 | const toggle = page.getByRole('button', { name: 'Open chat' }); |
| 162 | if (await toggle.count()) { await toggle.first().click(); await wait(800); } |
| 163 | } |
| 164 | /** Switch workspace by its tab: no reload, so the loaded model stays. */ |
| 165 | async function tab(page, workspace) { |
| 166 | await page.locator(`[data-workspace-tab="${workspace}"]`).first().click(); |
no test coverage detected