From 7a387406c4cdadf60c0c346bb72deb4ecdabc423 Mon Sep 17 00:00:00 2001 From: cmoinier Date: Tue, 29 Oct 2024 16:34:05 +0100 Subject: [PATCH] attempt to fix flaky test --- apps/metadata-editor-e2e/src/e2e/record-actions.cy.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/metadata-editor-e2e/src/e2e/record-actions.cy.ts b/apps/metadata-editor-e2e/src/e2e/record-actions.cy.ts index ae85eb980..18c6537e0 100644 --- a/apps/metadata-editor-e2e/src/e2e/record-actions.cy.ts +++ b/apps/metadata-editor-e2e/src/e2e/record-actions.cy.ts @@ -26,6 +26,7 @@ describe('record-actions', () => { }).as('insertRecord') cy.get('md-editor-publish-button').click() cy.wait('@insertRecord') + cy.get('@abstractField').focus() cy.get('@abstractField').type('draft abstract') // Assert that the draft exists in the local storage cy.editor_readFormUniqueIdentifier().then((uniqueIdentifier) =>