refactor: ♻️ Rename step to block
This commit is contained in:
@ -6,7 +6,7 @@ import cuid from 'cuid'
|
||||
|
||||
const typebotId = cuid()
|
||||
|
||||
test.describe('Code step', () => {
|
||||
test.describe('Code block', () => {
|
||||
test('code should trigger', async ({ page }) => {
|
||||
await importTypebotInDatabase(
|
||||
path.join(__dirname, '../../fixtures/typebots/logic/code.json'),
|
||||
|
@ -6,7 +6,7 @@ import cuid from 'cuid'
|
||||
|
||||
const typebotId = cuid()
|
||||
|
||||
test.describe('Condition step', () => {
|
||||
test.describe('Condition block', () => {
|
||||
test('its configuration should work', async ({ page }) => {
|
||||
await importTypebotInDatabase(
|
||||
path.join(__dirname, '../../fixtures/typebots/logic/condition.json'),
|
||||
|
@ -6,7 +6,7 @@ import cuid from 'cuid'
|
||||
|
||||
const typebotId = cuid()
|
||||
|
||||
test.describe('Redirect step', () => {
|
||||
test.describe('Redirect block', () => {
|
||||
test('its configuration should work', async ({ page, context }) => {
|
||||
await importTypebotInDatabase(
|
||||
path.join(__dirname, '../../fixtures/typebots/logic/redirect.json'),
|
||||
|
@ -6,7 +6,7 @@ import cuid from 'cuid'
|
||||
|
||||
const typebotId = cuid()
|
||||
|
||||
test.describe('Set variable step', () => {
|
||||
test.describe('Set variable block', () => {
|
||||
test('its configuration should work', async ({ page }) => {
|
||||
await importTypebotInDatabase(
|
||||
path.join(__dirname, '../../fixtures/typebots/logic/setVariable.json'),
|
||||
|
@ -30,15 +30,15 @@ test('should be configurable', async ({ page }) => {
|
||||
await page.click('text=Jump in My link typebot 2')
|
||||
await expect(page.locator('input[value="My link typebot 2"]')).toBeVisible()
|
||||
await page.click('input[placeholder="Select a block"]')
|
||||
await page.click('text=Block #2')
|
||||
await page.click('text=Group #2')
|
||||
|
||||
await page.click('text=Preview')
|
||||
await expect(typebotViewer(page).locator('text=Second block')).toBeVisible()
|
||||
|
||||
await page.click('[aria-label="Close"]')
|
||||
await page.click('text=Jump to Block #2 in My link typebot 2')
|
||||
await page.click('input[value="Block #2"]', { clickCount: 3 })
|
||||
await page.press('input[value="Block #2"]', 'Backspace')
|
||||
await page.click('text=Jump to Group #2 in My link typebot 2')
|
||||
await page.click('input[value="Group #2"]', { clickCount: 3 })
|
||||
await page.press('input[value="Group #2"]', 'Backspace')
|
||||
await page.click('button >> text=Start')
|
||||
|
||||
await page.click('text=Preview')
|
||||
|
Reference in New Issue
Block a user