From be69fc448d5accdfedf1d8281a781ead227c44e1 Mon Sep 17 00:00:00 2001 From: James Date: Thu, 11 Apr 2024 10:59:26 -0400 Subject: [PATCH] chore: de-flake --- test/fields/collections/Relationship/e2e.spec.ts | 4 ++-- test/fields/e2e.spec.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/fields/collections/Relationship/e2e.spec.ts b/test/fields/collections/Relationship/e2e.spec.ts index a38bec314c..2badcdcf72 100644 --- a/test/fields/collections/Relationship/e2e.spec.ts +++ b/test/fields/collections/Relationship/e2e.spec.ts @@ -293,9 +293,9 @@ describe('relationship', () => { // opened through the edit button can be saved using the hotkey. test('should save using hotkey in edit document drawer', async () => { await page.goto(url.create) - // First fill out the relationship field, as it's required - await page.locator('#relationship-add-new .relationship-add-new__add-button').click() + await wait(500) await page.locator('#field-relationship .value-container').click() + await wait(500) // Select "Seeded text document" relationship await page.getByText('Seeded text document', { exact: true }).click() diff --git a/test/fields/e2e.spec.ts b/test/fields/e2e.spec.ts index f12e206aeb..19a9956e5f 100644 --- a/test/fields/e2e.spec.ts +++ b/test/fields/e2e.spec.ts @@ -800,6 +800,8 @@ describe('fields', () => { await openDocDrawer(page, '.field-type.upload .upload__toggler.doc-drawer__toggler') + await wait(1000) + await page .locator('[id^=doc-drawer_uploads_1_] .file-field__upload input[type="file"]') .setInputFiles(path.resolve(dirname, './uploads/payload.png'))