2
0

📦 Update cuid to cuid2

This commit is contained in:
Baptiste Arnaud
2023-02-10 15:06:02 +01:00
parent 2dbf0fb848
commit 51f76700b2
77 changed files with 254 additions and 250 deletions

View File

@ -1,5 +1,5 @@
import test, { expect } from '@playwright/test'
import cuid from 'cuid'
import { createId } from '@paralleldrive/cuid2'
import {
defaultSettings,
defaultTextInputOptions,
@ -10,7 +10,7 @@ import { createTypebots, updateTypebot } from 'utils/playwright/databaseActions'
import { parseDefaultGroupWithBlock } from 'utils/playwright/databaseHelpers'
test('Result should be overwritten on page refresh', async ({ page }) => {
const typebotId = cuid()
const typebotId = createId()
await createTypebots([
{
id: typebotId,
@ -39,7 +39,7 @@ test('Result should be overwritten on page refresh', async ({ page }) => {
test.describe('Create result on page refresh enabled', () => {
test('should work', async ({ page }) => {
const typebotId = cuid()
const typebotId = createId()
await createTypebots([
{
id: typebotId,
@ -74,7 +74,7 @@ test.describe('Create result on page refresh enabled', () => {
})
test('Hide query params', async ({ page }) => {
const typebotId = cuid()
const typebotId = createId()
await createTypebots([
{
id: typebotId,
@ -102,7 +102,7 @@ test('Hide query params', async ({ page }) => {
})
test('Show close message', async ({ page }) => {
const typebotId = cuid()
const typebotId = createId()
await createTypebots([
{
id: typebotId,
@ -118,7 +118,7 @@ test('Show close message', async ({ page }) => {
})
test('Should correctly parse metadata', async ({ page }) => {
const typebotId = cuid()
const typebotId = createId()
const customMetadata: Metadata = {
description: 'My custom description',
title: 'Custom title',