Skip to content

Commit 65b6fe8

Browse files
committed
trigger invisible change
1 parent 8a747bf commit 65b6fe8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cypress/support/monaco.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ export function setMonacoEditorContents(editorCyName: string, text: string) {
1414
if (editor) {
1515
editor.setValue(text);
1616
// Force a change event to be triggered
17-
cy.dataCy(editorCyName).find('textarea').type(' ', { force: true });
18-
editor.setValue(text);
17+
cy.dataCy(editorCyName).find('textarea').type(' {backspace}', { force: true });
1918
} else {
2019
throw new Error('Monaco editor not found on the window or frames[0]');
2120
}

0 commit comments

Comments
 (0)