✨ (preview) Add preview runtime dropdown
User can select between Web and API previews Closes #247
This commit is contained in:
@@ -90,8 +90,16 @@ test('Variable buttons should work', async ({ page }) => {
|
||||
await page.click('[data-testid="block1-icon"]')
|
||||
await page.click('text=Multiple choice?')
|
||||
await page.click('text="Restart"')
|
||||
await page.getByTestId('button').first().click()
|
||||
await page.getByTestId('button').nth(1).click()
|
||||
await page
|
||||
.locator('typebot-standard')
|
||||
.getByRole('checkbox', { name: 'Variable item' })
|
||||
.first()
|
||||
.click()
|
||||
await page
|
||||
.locator('typebot-standard')
|
||||
.getByRole('checkbox', { name: 'Variable item' })
|
||||
.nth(1)
|
||||
.click()
|
||||
await page.locator('text="Send"').click()
|
||||
await expect(
|
||||
page.locator('text="Variable item, Variable item"')
|
||||
|
||||
@@ -47,7 +47,7 @@ test.describe('Builder', () => {
|
||||
`${process.env.NEXTAUTH_URL}/api/mock/webhook`
|
||||
)
|
||||
await page.click('text=Advanced configuration')
|
||||
await page.click('text=GET')
|
||||
await page.getByRole('button', { name: 'GET' }).click()
|
||||
await page.click('text=POST')
|
||||
|
||||
await page.click('text=Query params')
|
||||
|
||||
Reference in New Issue
Block a user