2
0

perf(e2e): ️ Migrate to Playwright

This commit is contained in:
Baptiste Arnaud
2022-01-28 09:42:31 +01:00
parent c5aaa323d1
commit 73f277fce7
145 changed files with 3104 additions and 2346 deletions

View File

@ -14,7 +14,8 @@ export const useFolders = ({
const params = stringify({ parentId })
const { data, error, mutate } = useSWR<{ folders: DashboardFolder[] }, Error>(
`/api/folders?${params}`,
fetcher
fetcher,
{ dedupingInterval: 0 }
)
if (error) onError(error)
return {

View File

@ -1,4 +1,3 @@
import { Coordinates } from '@dnd-kit/core/dist/types'
import { Block, Edge, Table, Target, Typebot } from 'models'
import { AnchorsPositionProps } from 'components/board/graph/Edges/Edge'
import {
@ -7,6 +6,7 @@ import {
blockAnchorsOffset,
ConnectingIds,
Endpoint,
Coordinates,
} from 'contexts/GraphContext'
import { roundCorners } from 'svg-round-corners'
import { headerHeight } from 'components/shared/TypebotHeader'

View File

@ -50,7 +50,8 @@ export const useTypebots = ({
const params = stringify({ folderId })
const { data, error, mutate } = useSWR<{ typebots: Typebot[] }, Error>(
`/api/typebots?${params}`,
fetcher
fetcher,
{ dedupingInterval: 0 }
)
if (error) onError(error)
return {