♻️ (api) Auto start bot if starting with input
Closes #877, closes #884
This commit is contained in:
@@ -103,7 +103,7 @@ test.describe.parallel('Google sheets integration', () => {
|
||||
await page.click('text=Select an operation')
|
||||
await page.click('text=Get data from sheet')
|
||||
|
||||
await page.getByRole('button', { name: 'Rows to filter' }).click()
|
||||
await page.getByRole('button', { name: 'Select row(s)' }).click()
|
||||
await page.getByRole('button', { name: 'Add filter rule' }).click()
|
||||
await page.click('text=Select a column')
|
||||
await page.click('button >> text="Email"')
|
||||
|
||||
@@ -34,7 +34,7 @@ test.describe('Send email block', () => {
|
||||
)
|
||||
await page.fill('[placeholder="John Smith"]', 'John Smith')
|
||||
await page.fill('[placeholder="mail.provider.com"]', env.SMTP_HOST)
|
||||
await page.fill('[placeholder="user@provider.com"]', env.SMTP_USERNAME)
|
||||
await page.getByLabel('Username').fill(env.SMTP_USERNAME)
|
||||
await page.fill('[type="password"]', env.SMTP_PASSWORD)
|
||||
await page.fill('input[role="spinbutton"]', env.SMTP_PORT.toString())
|
||||
await expect(createButton).toBeEnabled()
|
||||
|
||||
@@ -57,7 +57,9 @@ test.describe('Starter workspace', () => {
|
||||
},
|
||||
])
|
||||
await page.goto(`/typebots/${typebotId}/share`)
|
||||
await expect(page.locator('[data-testid="pro-lock-tag"]')).toBeVisible()
|
||||
await expect(
|
||||
page.locator('[data-testid="pro-lock-tag"]').nth(0)
|
||||
).toBeVisible()
|
||||
await page.click('text=Add my domain')
|
||||
await expect(
|
||||
page.locator(
|
||||
|
||||
@@ -91,6 +91,7 @@ export const startWhatsAppPreview = authenticatedProcedure
|
||||
|
||||
const { newSessionState, messages, input, clientSideActions, logs } =
|
||||
await startSession({
|
||||
message: undefined,
|
||||
startParams: {
|
||||
isOnlyRegistering: !canSendDirectMessagesToUser,
|
||||
typebot: typebotId,
|
||||
|
||||
Reference in New Issue
Block a user