2
0

fix(webhook): 🐛 Sample result w/ multi input blocks

This commit is contained in:
Baptiste Arnaud
2022-03-21 17:05:51 +01:00
parent 5d3010d280
commit 7399140e49
12 changed files with 421 additions and 202 deletions

View File

@ -8,7 +8,10 @@ test.describe('Webhook step', () => {
test('easy configuration should work', async ({ page }) => {
const typebotId = cuid()
await importTypebotInDatabase(
path.join(__dirname, '../../fixtures/typebots/integrations/webhook.json'),
path.join(
__dirname,
'../../fixtures/typebots/integrations/easyConfigWebhook.json'
),
{
id: typebotId,
}
@ -22,7 +25,7 @@ test.describe('Webhook step', () => {
)
await page.click('text=Test the request')
await expect(page.locator('div[role="textbox"] >> nth=-1')).toContainText(
'"statusCode": 200'
`"Block #1": "answer value", "Block #2": "20", "Block #2 (1)": "Yes"`
)
})
test('Generated body should work', async ({ page }) => {