File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
apps/server-e2e/src/support Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ interface GotoOpts {
88}
99
1010const BASE_URL = "http://127.0.0.1:8082" ;
11+ const NUM_OF_CREATE_NOTE_OPTIONS = 2 ;
1112
1213interface DropdownLocator extends Locator {
1314 selectOptionByText : ( text : string ) => Promise < void > ;
@@ -73,7 +74,8 @@ export default class App {
7374 const resultsSelector = this . currentNoteSplit . locator ( ".note-detail-empty-results" ) ;
7475 await expect ( resultsSelector ) . toContainText ( noteTitle ) ;
7576 await resultsSelector . locator ( ".aa-suggestion" , { hasText : noteTitle } )
76- . nth ( 1 ) // Select the second one, as the first one is "Create a new note"
77+ // Select the n+1 one, as the first one is "Create a new note"
78+ . nth ( NUM_OF_CREATE_NOTE_OPTIONS )
7779 . click ( ) ;
7880 }
7981
You can’t perform that action at this time.
0 commit comments