fix: avoid copy-sensitive agent file toast assertion (#41179)

This commit is contained in:
Joel
2026-08-24 10:33:25 +00:00
committed by GitHub
parent 2be3c3d69e
commit 44aec257bf
@@ -62,8 +62,9 @@ Then(
async function (this: DifyWorld) {
const page = this.getPage()
const dialog = page.getByRole('dialog', { name: 'Upload file' })
const notifications = page.getByRole('region', { name: 'Notifications' })
await expect(page.getByText('Upload one file.')).toBeVisible()
await expect(notifications.getByRole('dialog')).toBeVisible()
await expect(dialog.getByRole('button', { name: 'Upload' })).toBeDisabled()
await expect(
dialog.getByText(agentBuilderTestMaterials.smallFile, { exact: true }),