♻️ Introduce typebot v6 with events (#1013)

Closes #885
This commit is contained in:
Baptiste Arnaud
2023-11-08 15:34:16 +01:00
committed by GitHub
parent 68e4fc71fb
commit 35300eaf34
634 changed files with 58971 additions and 31449 deletions

View File

@@ -2,7 +2,6 @@ import test, { expect } from '@playwright/test'
import { createId } from '@paralleldrive/cuid2'
import { CollaborationType, Plan, WorkspaceRole } from '@typebot.io/prisma'
import prisma from '@typebot.io/lib/prisma'
import { InputBlockType, defaultTextInputOptions } from '@typebot.io/schemas'
import {
createTypebots,
injectFakeResults,
@@ -10,6 +9,7 @@ import {
import { parseDefaultGroupWithBlock } from '@typebot.io/lib/playwright/databaseHelpers'
import { userId } from '@typebot.io/lib/playwright/databaseSetup'
import { createFolder } from '@/test/utils/databaseActions'
import { InputBlockType } from '@typebot.io/schemas/features/blocks/inputs/constants'
test.describe('Typebot owner', () => {
test('Can invite collaborators', async ({ page }) => {
@@ -34,7 +34,6 @@ test.describe('Typebot owner', () => {
workspaceId: guestWorkspaceId,
...parseDefaultGroupWithBlock({
type: InputBlockType.TEXT,
options: defaultTextInputOptions,
}),
},
])
@@ -87,7 +86,6 @@ test.describe('Guest with read access', () => {
workspaceId: guestWorkspaceId,
...parseDefaultGroupWithBlock({
type: InputBlockType.TEXT,
options: defaultTextInputOptions,
}),
},
{
@@ -145,7 +143,6 @@ test.describe('Guest with write access', () => {
workspaceId: guestWorkspaceId,
...parseDefaultGroupWithBlock({
type: InputBlockType.TEXT,
options: defaultTextInputOptions,
}),
},
{