2
0

🚸 (editor) Show toolbar on group click

This commit is contained in:
Baptiste Arnaud
2023-02-23 16:11:51 +01:00
parent 2ff6991ca7
commit 0619c60970
4 changed files with 126 additions and 33 deletions

View File

@ -197,11 +197,19 @@ test('Preview from group should work', async ({ page }) => {
)
await page.goto(`/typebots/${typebotId}/edit`)
await page.click('[aria-label="Preview bot from this group"] >> nth=1')
await page
.getByTestId('group')
.nth(1)
.click({ position: { x: 100, y: 10 } })
await page.click('[aria-label="Preview bot from this group"]')
await expect(
page.locator('typebot-standard').locator('text="Hello this is group 1"')
).toBeVisible()
await page.click('[aria-label="Preview bot from this group"] >> nth=2')
await page
.getByTestId('group')
.nth(2)
.click({ position: { x: 100, y: 10 } })
await page.click('[aria-label="Preview bot from this group"]')
await expect(
page.locator('typebot-standard').locator('text="Hello this is group 2"')
).toBeVisible()