✨ Introducing The Forge (#1072)
The Forge allows anyone to easily create their own Typebot Block. Closes #380
This commit is contained in:
@@ -43,13 +43,13 @@ test.describe.parallel('Buttons input block', () => {
|
||||
await expect(page.getByTestId('guest-bubble')).toHaveText('Item 3')
|
||||
await page.click('button[aria-label="Close"]')
|
||||
|
||||
await page.click('[data-testid="block2-icon"]')
|
||||
await page.getByTestId('block block2').click({ position: { x: 0, y: 0 } })
|
||||
await page.click('text=Multiple choice?')
|
||||
await page.getByLabel('Button label:').fill('Go')
|
||||
await page.getByPlaceholder('Select a variable').nth(1).click()
|
||||
await page.getByText('var1').click()
|
||||
await expect(page.getByText('Setvar1')).toBeVisible()
|
||||
await page.click('[data-testid="block2-icon"]')
|
||||
await page.getByTestId('block block2').click({ position: { x: 0, y: 0 } })
|
||||
|
||||
await page.locator('text=Item 1').hover()
|
||||
await page.waitForTimeout(1000)
|
||||
@@ -83,7 +83,7 @@ test('Variable buttons should work', async ({ page }) => {
|
||||
await expect(page.locator('text=Ok great!')).toBeVisible()
|
||||
await page.click('text="Item 1"')
|
||||
await page.fill('input[value="Item 1"]', '{{Item 2}}')
|
||||
await page.click('[data-testid="block1-icon"]')
|
||||
await page.getByTestId('block block1').click({ position: { x: 0, y: 0 } })
|
||||
await page.click('text=Multiple choice?')
|
||||
await page.click('text="Restart"')
|
||||
await page
|
||||
|
||||
@@ -75,7 +75,7 @@ test.describe.parallel('Picture choice input block', () => {
|
||||
page.locator('typebot-standard').getByText('Third image')
|
||||
).toBeVisible()
|
||||
|
||||
await page.getByTestId('block2-icon').click()
|
||||
await page.getByTestId('block block2').click({ position: { x: 0, y: 0 } })
|
||||
await page.getByText('Multiple choice?').click()
|
||||
await page.getByLabel('Submit button label:').fill('Go')
|
||||
await page.getByRole('button', { name: 'Restart' }).click()
|
||||
@@ -94,7 +94,7 @@ test.describe.parallel('Picture choice input block', () => {
|
||||
page.locator('typebot-standard').getByText('First image, Second image')
|
||||
).toBeVisible()
|
||||
|
||||
await page.getByTestId('block2-icon').click()
|
||||
await page.getByTestId('block block2').click({ position: { x: 0, y: 0 } })
|
||||
await page.getByText('Is searchable?').click()
|
||||
await page.getByLabel('Input placeholder:').fill('Search...')
|
||||
await page.getByRole('button', { name: 'Restart' }).click()
|
||||
|
||||
Reference in New Issue
Block a user