Skip to content

Commit

Permalink
trigger invisible change
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Feb 11, 2025
1 parent 8a747bf commit 65b6fe8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cypress/support/monaco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export function setMonacoEditorContents(editorCyName: string, text: string) {
if (editor) {
editor.setValue(text);
// Force a change event to be triggered
cy.dataCy(editorCyName).find('textarea').type(' ', { force: true });
editor.setValue(text);
cy.dataCy(editorCyName).find('textarea').type(' {backspace}', { force: true });
} else {
throw new Error('Monaco editor not found on the window or frames[0]');
}
Expand Down

0 comments on commit 65b6fe8

Please sign in to comment.