Skip to content

Commit 244e77d

Browse files
author
Emil Andersson
committed
update saved scripts e2e test to work with monaco
1 parent 695b459 commit 244e77d

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

e2e_tests/integration/saved-scripts.spec.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,9 @@ 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-
cy.get('[data-testid="activeEditor"] textarea').type(
45-
`// Guide
46-
:play movies${
47-
'{del}'.repeat(
48-
22
49-
) /* normal clear doesn't seem to work with code-mirror text field*/
50-
}
51-
`,
52-
{ force: true }
53-
)
44+
cy.get('[data-testid="activeEditor"] textarea')
45+
.type('{meta}a{del}') // select all and delete
46+
.type('// Guide{shift}{enter}:play movies', { force: true })
5447
cy.get('[title="Update favorite"]').click()
5548

5649
cy.get('[data-testid="scriptTitle-Guide"]').should('exist')

0 commit comments

Comments
 (0)