⬆️ Upgrade dependencies
This commit is contained in:
@@ -33,7 +33,7 @@ test('should work as expected', async ({ page }) => {
|
||||
'src',
|
||||
RegExp(`/public/typebots/${typebotId}/blocks`, 'gm')
|
||||
)
|
||||
await page.getByRole('button', { name: 'Preview' }).click()
|
||||
await page.getByRole('button', { name: 'Preview', exact: true }).click()
|
||||
await expect(typebotViewer(page).locator('audio')).toHaveAttribute(
|
||||
'src',
|
||||
RegExp(`/public/typebots/${typebotId}/blocks`, 'gm')
|
||||
|
||||
@@ -29,11 +29,7 @@ test.describe.parallel('Image bubble block', () => {
|
||||
await page.setInputFiles('input[type="file"]', getTestAsset('avatar.jpg'))
|
||||
await expect(page.locator('img')).toHaveAttribute(
|
||||
'src',
|
||||
`${process.env.S3_SSL === 'false' ? 'http://' : 'https://'}${
|
||||
process.env.S3_ENDPOINT
|
||||
}${process.env.S3_PORT ? `:${process.env.S3_PORT}` : ''}/${
|
||||
process.env.S3_BUCKET
|
||||
}/public/typebots/${typebotId}/blocks/block2`
|
||||
new RegExp(`/public/typebots/${typebotId}/blocks/block2`, 'gm')
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ test.describe('Chatwoot block', () => {
|
||||
await page.getByLabel('Email').fill('john@email.com')
|
||||
await page.getByLabel('Avatar URL').fill('https://domain.com/avatar.png')
|
||||
await page.getByLabel('Phone number').fill('+33654347543')
|
||||
await page.getByRole('button', { name: 'Preview' }).click()
|
||||
await page.getByRole('button', { name: 'Preview', exact: true }).click()
|
||||
await expect(
|
||||
page.getByText("Chatwoot won't open in preview mode").nth(0)
|
||||
).toBeVisible()
|
||||
|
||||
@@ -139,9 +139,9 @@ const useUndo = <T extends { updatedAt: string } | undefined>(
|
||||
const set = useCallback(
|
||||
(newPresent: T | ((current: T) => T), options = { updateDate: true }) => {
|
||||
const updatedTypebot =
|
||||
newPresent && 'id' in newPresent
|
||||
? newPresent
|
||||
: (newPresent as (current: T) => T)(presentRef.current)
|
||||
newPresent && typeof newPresent === 'function'
|
||||
? newPresent(presentRef.current)
|
||||
: newPresent
|
||||
presentRef.current = updatedTypebot
|
||||
dispatch({
|
||||
type: ActionType.Set,
|
||||
|
||||
Reference in New Issue
Block a user