🐛 (variables) Correctly parse variables in template literals

This commit is contained in:
Baptiste Arnaud
2023-03-23 18:32:12 +01:00
parent 69ee5900b4
commit fa31984456
3 changed files with 29 additions and 22 deletions

View File

@@ -25,6 +25,7 @@ test.describe.parallel('Image bubble block', () => {
await page.goto(`/typebots/${typebotId}/edit`)
await page.click('text=Click to edit...')
await page.getByRole('button', { name: 'Upload' }).click()
await page.setInputFiles('input[type="file"]', getTestAsset('avatar.jpg'))
await expect(page.locator('img')).toHaveAttribute(
'src',

View File

@@ -44,6 +44,7 @@ test.describe('Text bubble block', () => {
await page.click('[data-testid="link-button"]')
await page.fill('input[placeholder="Paste link"]', 'https://github.com')
await page.press('input[placeholder="Paste link"]', 'Enter')
await page.press('div[role="textbox"]', 'ArrowRight')
await page.press('div[role="textbox"]', 'Shift+Enter')
await page.click('button[aria-label="Insert variable"]')
await page.fill('[data-testid="variables-input"]', 'test')