import test from '@playwright/test'; import { createTypebots } from '@typebot.io/lib/playwright/databaseActions'; import { parseDefaultGroupWithBlock } from '@typebot.io/lib/playwright/databaseHelpers'; import { createId } from '@paralleldrive/cuid2'; import { IntegrationBlockType } from '@typebot.io/schemas/features/blocks/integrations/constants'; test.describe('Google Calendar block', () => { test('its configuration should work', async ({ page }) => { const typebotId = createId(); await createTypebots([ { id: typebotId, ...parseDefaultGroupWithBlock({ type: IntegrationBlockType.GOOGLE_CALENDAR, }), }, ]); await page.goto(/typebots/${typebotId}/edit) await page.getByText('Configure...').click() await page.fill('input[placeholder="OAuth Client ID"]', ${process.env.CLIENT_ID}); await page.fill('input[placeholder="Calendar ID"]', 'your-calendar-id'); await page.fill('input[placeholder="Monday to Friday, 9 AM to 5 PM"]', 'availability-settings'); // Add additional configuration steps if needed }); });