Skip to content

Commit

Permalink
User ctrl-a to clear Monaco editor edit field (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: Martijn Dirkse <martijn@integrationpartners.nl>
  • Loading branch information
mhdirkse and Martijn Dirkse committed Aug 30, 2024
1 parent 0b90573 commit 20938f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/e2e/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ Cypress.Commands.add('runInTestAPipeline', (config: string, adapter: string, mes
.clear().type(config)
cy.get('[data-cy-test-pipeline="selectAdapter"]')
.clear().type(adapter)
// Requires special treatment because the Monaco editor has to be
// accessed here.
cy.get('[data-cy-test-pipeline="message"]')
.clear().type(message)
.type('{ctrl}a').type(message)
cy.get('[data-cy-test-pipeline="send"]').click()
cy.get('[data-cy-test-pipeline="runResult"]').should('contain', 'SUCCESS')
})
Expand Down

0 comments on commit 20938f3

Please sign in to comment.