2
0

fix(docker): 🐛 Runtime public environment

This commit is contained in:
Baptiste Arnaud
2022-06-22 07:36:11 +02:00
parent 3e47b37c2e
commit f801a29539
55 changed files with 358 additions and 167 deletions

View File

@ -8,6 +8,7 @@ import path from 'path'
import {
createResults,
createTypebots,
freeWorkspaceId,
importTypebotInDatabase,
parseDefaultGroupWithBlock,
} from '../services/database'
@ -123,7 +124,7 @@ test.describe('Results page', () => {
test("Incomplete results shouldn't be displayed", async ({ page }) => {
await prisma.typebot.update({
where: { id: typebotId },
data: { workspaceId: 'free' },
data: { workspaceId: freeWorkspaceId },
})
await page.goto(`/typebots/${typebotId}/results`)
await page.click('text=Unlock')

View File

@ -2,7 +2,7 @@ import test, { expect } from '@playwright/test'
import cuid from 'cuid'
import { defaultTextInputOptions } from 'models'
import path from 'path'
import { importTypebotInDatabase } from '../services/database'
import { freeWorkspaceId, importTypebotInDatabase } from '../services/database'
import { typebotViewer } from '../services/selectorUtils'
test.describe.parallel('Settings page', () => {
@ -127,7 +127,7 @@ test.describe.parallel('Settings page', () => {
path.join(__dirname, '../fixtures/typebots/settings.json'),
{
id: typebotId,
workspaceId: 'free',
workspaceId: freeWorkspaceId,
}
)
await page.goto(`/typebots/${typebotId}/settings`)