chore: de-flake

This commit is contained in:
James
2024-04-11 10:59:26 -04:00
parent d4e5d3df54
commit be69fc448d
2 changed files with 4 additions and 2 deletions

View File

@@ -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()

View File

@@ -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'))