Fix e2e test (#1748)

This PR fixes a failing end to end test that snuck in.

### Change Type

- [x] `tests` — Changes to any test code only[^2]

### Test Plan

- [x] End to end tests
This commit is contained in:
Steve Ruiz 2023-07-18 23:13:11 +01:00 committed by GitHub
parent 3e31ef2a7d
commit 789b1d1ac6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -312,6 +312,7 @@ test.describe('Context menu', async () => {
test.beforeEach(async ({ browser }) => {
page = await browser.newPage()
await setupPage(page)
await setupPageWithShapes(page)
})
test('distribute horizontal', async () => {
@ -340,7 +341,7 @@ test.describe('Context menu', async () => {
})
test.describe('Delete bug', () => {
test.beforeAll(async ({ browser }) => {
test.beforeEach(async ({ browser }) => {
page = await browser.newPage()
await setupPage(page)
})
@ -357,8 +358,8 @@ test.describe('Delete bug', () => {
test('delete bug with drag', async () => {
await page.keyboard.press('r')
await page.mouse.move(100, 100)
await page.mouse.down()
await page.mouse.move(100, 100)
await page.mouse.up()
await page.keyboard.press('Backspace')
expect(await page.evaluate(() => __tldraw_ui_event)).toMatchObject({