Skip to content

Commit

Permalink
attempt to fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Oct 29, 2024
1 parent 4431614 commit d081b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/metadata-editor-e2e/src/e2e/record-actions.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('record-actions', () => {
}).as('insertRecord')
cy.get('md-editor-publish-button').click()
cy.wait('@insertRecord')
cy.get('@abstractField').type('draft abstract')
cy.get('@abstractField').focus().type('draft abstract')

Check failure on line 29 in apps/metadata-editor-e2e/src/e2e/record-actions.cy.ts

View workflow job for this annotation

GitHub Actions / Format check, lint, unit tests

It is unsafe to chain further commands that rely on the subject after this command. It is best to split the chain, chaining again from `cy.` in a next command line
// Assert that the draft exists in the local storage
cy.editor_readFormUniqueIdentifier().then((uniqueIdentifier) =>
cy
Expand Down

0 comments on commit d081b70

Please sign in to comment.