2
0

build: 📦️ Update packages

This commit is contained in:
Baptiste Arnaud
2022-02-14 18:04:23 +01:00
parent bdfd7ac1bc
commit e7d1f5d674
15 changed files with 312 additions and 119 deletions

View File

@ -1,4 +1,4 @@
import test, { expect, Page } from '@playwright/test'
import test, { expect } from '@playwright/test'
import {
createTypebots,
importTypebotInDatabase,
@ -65,7 +65,9 @@ test.describe.parallel('Editor', () => {
await expect(page.locator('[data-testid="step"] >> nth=1')).toHaveText(
'Hello!'
)
await page.dragAndDrop('text=Hello', 'text=Item 1')
await page.dragAndDrop('text=Hello', '[data-testid="step"] >> nth=3', {
targetPosition: { x: 100, y: 0 },
})
await expect(page.locator('[data-testid="step"] >> nth=2')).toHaveText(
'Hello!'
)