feat(ui): simplify synthesis Q&A modal (#57)
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { expect, test } from '@playwright/test'
|
||||
import { readStackManifest } from './stack-manifest.mjs'
|
||||
|
||||
for (const width of [1280, 375]) test(`ticket #56: fixed selection action and modal Q&A remain accessible at ${width}px`, async ({ page }) => {
|
||||
for (const width of [1280, 375]) test(`ticket #57: simplified modal Q&A remains accessible at ${width}px`, async ({ page }) => {
|
||||
const stack = readStackManifest()
|
||||
await page.setViewportSize({ width, height: 850 })
|
||||
await page.context().route('**/*', route => {
|
||||
@ -64,7 +64,8 @@ for (const width of [1280, 375]) test(`ticket #56: fixed selection action and mo
|
||||
await expect(page.getByLabel('Passage sélectionné')).toHaveText(excerpt)
|
||||
const question = page.getByRole('textbox', { name: 'Votre question' })
|
||||
|
||||
await expect(page.getByText(/Les sources ont expiré/)).toBeVisible()
|
||||
await expect(dialog.getByText(/Les sources ont expiré|Expiration des sources|Posez une question sur le passage sélectionné|sans articles sources ni session fournisseur/)).toHaveCount(0)
|
||||
await expect(dialog.getByRole('button', { name: /Actualiser|Développer|Réduire/ })).toHaveCount(0)
|
||||
await question.fill('Que signifie ce passage ?')
|
||||
await page.keyboard.press('Escape')
|
||||
await expect(dialog).toHaveCount(0)
|
||||
|
||||
Reference in New Issue
Block a user