@ -85,7 +85,9 @@ export const generateUploadUrl = publicProcedure
|
||||
if (
|
||||
block?.type !== InputBlockType.FILE &&
|
||||
(block.type !== InputBlockType.TEXT ||
|
||||
!block.options?.attachments?.isEnabled)
|
||||
!block.options?.attachments?.isEnabled) &&
|
||||
(block.type !== InputBlockType.TEXT ||
|
||||
!block.options?.audioClip?.isEnabled)
|
||||
)
|
||||
throw new TRPCError({
|
||||
code: 'BAD_REQUEST',
|
||||
|
@ -27,7 +27,10 @@ test('should work as expected', async ({ page, browser }) => {
|
||||
await page.goto(`${env.NEXTAUTH_URL}/typebots/${typebotId}/results`)
|
||||
await expect(page.getByRole('link', { name: 'api.json' })).toHaveAttribute(
|
||||
'href',
|
||||
/.+\/api\.json/
|
||||
/.+\/api\.json/,
|
||||
{
|
||||
timeout: 10000,
|
||||
}
|
||||
)
|
||||
await expect(
|
||||
page.getByRole('link', { name: 'fileUpload.json' })
|
||||
|
@ -17,7 +17,9 @@ test('Big groups should work as expected', async ({ page }) => {
|
||||
await page.locator('input').press('Enter')
|
||||
await page.getByRole('button', { name: 'Yes' }).click()
|
||||
await page.goto(`${env.NEXTAUTH_URL}/typebots/${typebotId}/results`)
|
||||
await expect(page.locator('text="Baptiste"')).toBeVisible()
|
||||
await expect(page.locator('text="Baptiste"')).toBeVisible({
|
||||
timeout: 10000,
|
||||
})
|
||||
await expect(page.locator('text="26"')).toBeVisible()
|
||||
await expect(page.locator('text="Yes"')).toBeVisible()
|
||||
await page.hover('tbody > tr')
|
||||
|
Reference in New Issue
Block a user