perf(editor): 🚸 More predictable edge management
This commit is contained in:
@ -30,7 +30,7 @@ test.describe.parallel('Embed bubble step', () => {
|
||||
await page.fill('input[placeholder="Paste the link or code..."]', pdfSrc)
|
||||
await expect(page.locator('iframe#embed-bubble-content')).toHaveAttribute(
|
||||
'src',
|
||||
`https://docs.google.com/viewer?embedded=true&url=${pdfSrc}`
|
||||
pdfSrc
|
||||
)
|
||||
await page.fill(
|
||||
'input[placeholder="Paste the link or code..."]',
|
||||
|
@ -51,7 +51,10 @@ test.describe.parallel('Editor', () => {
|
||||
await expect(page.locator('[data-testid="edge"] >> nth=0')).toBeVisible()
|
||||
await expect(page.locator('[data-testid="edge"] >> nth=1')).toBeVisible()
|
||||
|
||||
await page.click('[data-testid="clickable-edge"] >> nth=0', { force: true })
|
||||
await page.click('[data-testid="clickable-edge"] >> nth=0', {
|
||||
force: true,
|
||||
button: 'right',
|
||||
})
|
||||
await page.click('text=Delete')
|
||||
const total = await page.locator('[data-testid="edge"]').count()
|
||||
expect(total).toBe(1)
|
||||
|
Reference in New Issue
Block a user