2
0

fix(webhook): 🐛 Properly escape backslash and quotes

This commit is contained in:
Baptiste Arnaud
2022-06-18 12:14:05 +02:00
parent 18c5ea5207
commit 20dbfe64c9
4 changed files with 17 additions and 6 deletions

View File

@ -131,6 +131,9 @@ test.describe.parallel('Settings page', () => {
}
)
await page.goto(`/typebots/${typebotId}/settings`)
await expect(
typebotViewer(page).locator('text="What\'s your name?"')
).toBeVisible()
await page.click('button:has-text("General")')
await expect(page.locator('text=Pro')).toBeVisible()
await page.click('text=Typebot.io branding')

View File

@ -5,6 +5,9 @@ import { typebotViewer } from '../services/selectorUtils'
test.describe.parallel('Templates page', () => {
test('From scratch should create a blank typebot', async ({ page }) => {
await page.goto('/typebots/create')
await expect(
page.locator('button >> text="Settings & Members"')
).toBeEnabled()
await page.click('text=Start from scratch')
await expect(page).toHaveURL(new RegExp(`/edit`))
})