2
0

refactor: ♻️ Migrate from short-uuid to cuid lib

This commit is contained in:
Baptiste Arnaud
2022-03-18 12:30:42 +01:00
parent 64bafd15a1
commit 1423c14547
47 changed files with 120 additions and 132 deletions

View File

@ -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 }) => {

View File

@ -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 }) => {

View File

@ -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 }) => {

View File

@ -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 }) => {

View File

@ -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 }