@@ -7,18 +7,14 @@ test("Displays lint warnings for backend script", async ({ page, context }) => {
77 await app . closeAllTabs ( ) ;
88 await app . goToNoteInNewTab ( "Backend script with lint warnings" ) ;
99
10- const codeEditor = app . currentNoteSplit . locator ( ".CodeMirror " ) ;
10+ const codeEditor = app . currentNoteSplit . locator ( ".cm-editor " ) ;
1111
1212 // Expect two warning signs in the gutter.
13- await expect ( codeEditor . locator ( ".CodeMirror -gutter-wrapper .CodeMirror -lint-marker-warning" ) ) . toHaveCount ( 2 ) ;
13+ await expect ( codeEditor . locator ( ".cm -gutter-lint .cm -lint-marker-warning" ) ) . toHaveCount ( 2 ) ;
1414
1515 // Hover over hello
1616 await codeEditor . getByText ( "hello" ) . first ( ) . hover ( ) ;
1717 await expectTooltip ( page , "'hello' is defined but never used." ) ;
18-
19- // Hover over world
20- await codeEditor . getByText ( "world" ) . first ( ) . hover ( ) ;
21- await expectTooltip ( page , "'world' is defined but never used." ) ;
2218} ) ;
2319
2420test ( "Displays lint errors for backend script" , async ( { page, context } ) => {
@@ -27,10 +23,10 @@ test("Displays lint errors for backend script", async ({ page, context }) => {
2723 await app . closeAllTabs ( ) ;
2824 await app . goToNoteInNewTab ( "Backend script with lint errors" ) ;
2925
30- const codeEditor = app . currentNoteSplit . locator ( ".CodeMirror " ) ;
26+ const codeEditor = app . currentNoteSplit . locator ( ".cm-editor " ) ;
3127
3228 // Expect two warning signs in the gutter.
33- const errorMarker = codeEditor . locator ( ".CodeMirror -gutter-wrapper .CodeMirror -lint-marker-error" ) ;
29+ const errorMarker = codeEditor . locator ( ".cm -gutter-lint .cm -lint-marker-error" ) ;
3430 await expect ( errorMarker ) . toHaveCount ( 1 ) ;
3531
3632 // Hover over hello
@@ -40,7 +36,7 @@ test("Displays lint errors for backend script", async ({ page, context }) => {
4036
4137async function expectTooltip ( page : Page , tooltip : string ) {
4238 await expect (
43- page . locator ( ".CodeMirror-lint -tooltip:visible" , {
39+ page . locator ( ".cm -tooltip:visible" , {
4440 hasText : tooltip
4541 } )
4642 ) . toBeVisible ( ) ;
0 commit comments