(preview) Add preview runtime dropdown

User can select between Web and API previews

Closes #247
This commit is contained in:
Baptiste Arnaud
2023-02-22 11:40:04 +01:00
parent a265143dc0
commit 3967e5f1d0
17 changed files with 464 additions and 206 deletions

View File

@@ -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"')