Skip to content

Commit a3f12ce

Browse files
author
Emil Andersson
committed
update select all and delete command to work on linux
1 parent 1573dac commit a3f12ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

e2e_tests/integration/saved-scripts.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ describe('Saved Scripts', () => {
4141
cy.get('[data-testid="scriptTitle-script name"]').click()
4242
cy.get('[data-testid="currentlyEditing"]').contains('script name')
4343
// Editing script updates name and content
44+
const clearInput =
45+
Cypress.platform == 'darwin' ? '{cmd}a{del}' : '{ctrl}a{del}'
4446
cy.get('[data-testid="activeEditor"] textarea')
45-
.type('{meta}a{del}') // select all and delete
47+
.type(clearInput)
4648
.type('// Guide{shift}{enter}:play movies', { force: true })
4749
cy.get('[title="Update favorite"]').click()
4850

0 commit comments

Comments
 (0)