2
0

chore(editor): 👔 Send email disabled in preview

This commit is contained in:
Baptiste Arnaud
2022-02-13 07:49:56 +01:00
parent f57827c530
commit f8a64151ef
7 changed files with 41 additions and 10 deletions

View File

@ -70,11 +70,8 @@ test.describe('Send email step', () => {
await page.click('text=Preview')
await typebotViewer(page).locator('text=Go').click()
await page.waitForResponse(
(resp) =>
resp.request().url().includes('/api/integrations/email') &&
resp.status() === 200 &&
resp.request().method() === 'POST'
)
await expect(
page.locator('text=Emails are not sent in preview mode')
).toBeVisible()
})
})