Skip to content

Commit 0db71ba

Browse files
committed
Fix dismiss menu and retry
Signed-off-by: Luciano Resende <lresende@apple.com>
1 parent 7f62a20 commit 0db71ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cypress/tests/codesnippetfromselectedcells.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const openCellContextMenuWithSnippetItem = (retries = 5): void => {
131131
retries > 0
132132
) {
133133
// Dismiss menu and retry
134-
cy.get('body').type('{esc}');
134+
cy.get('body').click(0, 0, { force: true });
135135
cy.get('.lm-Menu').should('not.exist');
136136
openCellContextMenuWithSnippetItem(retries - 1);
137137
}

0 commit comments

Comments
 (0)