File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -111,11 +111,17 @@ describe('Neo4j Browser', () => {
111111 . should ( 'contain' , 'Emil Eifrem' )
112112 } )
113113 it ( 'can display meta items from side drawer' , ( ) => {
114+ const password = Cypress . config ( 'password' )
115+ cy . connect ( 'neo4j' , password )
114116 cy . executeCommand ( ':clear' )
115117 cy . get ( '[data-testid="drawerDBMS"]' ) . click ( )
116- cy . get ( '[data-testid="sidebarMetaItem"]' , { timeout : 30000 } ) . should ( p => {
117- expect ( p ) . to . have . length . above ( 17 )
118- } )
118+
119+ cy . executeCommand ( 'MATCH (n) RETURN DISTINCT labels(n);' )
120+ cy . contains ( 'Movie' )
121+ cy . get ( '[data-testid="sidebarMetaItem"]' , { timeout : 30000 } ) . should (
122+ 'have.length.above' ,
123+ 17
124+ )
119125 cy . get ( '[data-testid="drawerDBMS"]' ) . click ( )
120126 } )
121127 it ( 'displays user info in sidebar (when connected)' , ( ) => {
You can’t perform that action at this time.
0 commit comments