refactor: ♻️ Migrate from short-uuid to cuid lib
This commit is contained in:
@ -2,9 +2,9 @@ import test, { expect } from '@playwright/test'
|
||||
import path from 'path'
|
||||
import { typebotViewer } from '../../services/selectorUtils'
|
||||
import { importTypebotInDatabase } from '../../services/database'
|
||||
import { generate } from 'short-uuid'
|
||||
import cuid from 'cuid'
|
||||
|
||||
const typebotId = generate()
|
||||
const typebotId = cuid()
|
||||
|
||||
test.describe('Code step', () => {
|
||||
test('code should trigger', async ({ page }) => {
|
||||
|
@ -2,9 +2,9 @@ import test, { expect } from '@playwright/test'
|
||||
import path from 'path'
|
||||
import { typebotViewer } from '../../services/selectorUtils'
|
||||
import { importTypebotInDatabase } from '../../services/database'
|
||||
import { generate } from 'short-uuid'
|
||||
import cuid from 'cuid'
|
||||
|
||||
const typebotId = generate()
|
||||
const typebotId = cuid()
|
||||
|
||||
test.describe('Condition step', () => {
|
||||
test('its configuration should work', async ({ page }) => {
|
||||
|
@ -2,9 +2,9 @@ import test, { expect } from '@playwright/test'
|
||||
import path from 'path'
|
||||
import { typebotViewer } from '../../services/selectorUtils'
|
||||
import { importTypebotInDatabase } from '../../services/database'
|
||||
import { generate } from 'short-uuid'
|
||||
import cuid from 'cuid'
|
||||
|
||||
const typebotId = generate()
|
||||
const typebotId = cuid()
|
||||
|
||||
test.describe('Redirect step', () => {
|
||||
test('its configuration should work', async ({ page, context }) => {
|
||||
|
@ -2,9 +2,9 @@ import test, { expect } from '@playwright/test'
|
||||
import path from 'path'
|
||||
import { typebotViewer } from '../../services/selectorUtils'
|
||||
import { importTypebotInDatabase } from '../../services/database'
|
||||
import { generate } from 'short-uuid'
|
||||
import cuid from 'cuid'
|
||||
|
||||
const typebotId = generate()
|
||||
const typebotId = cuid()
|
||||
|
||||
test.describe('Set variable step', () => {
|
||||
test('its configuration should work', async ({ page }) => {
|
||||
|
@ -1,12 +1,12 @@
|
||||
import test, { expect } from '@playwright/test'
|
||||
import { typebotViewer } from '../../services/selectorUtils'
|
||||
import { generate } from 'short-uuid'
|
||||
import { importTypebotInDatabase } from '../../services/database'
|
||||
import path from 'path'
|
||||
import cuid from 'cuid'
|
||||
|
||||
test('should be configurable', async ({ page }) => {
|
||||
const typebotId = generate()
|
||||
const linkedTypebotId = generate()
|
||||
const typebotId = cuid()
|
||||
const linkedTypebotId = cuid()
|
||||
await importTypebotInDatabase(
|
||||
path.join(__dirname, '../../fixtures/typebots/logic/linkTypebots/1.json'),
|
||||
{ id: typebotId }
|
||||
|
Reference in New Issue
Block a user