@@ -23,10 +23,8 @@ import { isEnterpriseEdition } from '../support/utils'
2323/* global Cypress, cy, before, after */
2424
2525describe ( 'Plan output' , ( ) => {
26- before ( function ( ) {
27- cy . visit ( Cypress . config ( 'url' ) )
28- . title ( )
29- . should ( 'include' , 'Neo4j Browser' )
26+ before ( function ( ) {
27+ cy . visit ( Cypress . config ( 'url' ) ) . title ( ) . should ( 'include' , 'Neo4j Browser' )
3028 cy . wait ( 3000 )
3129 const password = Cypress . config ( 'password' )
3230 cy . connect ( 'neo4j' , password )
@@ -96,17 +94,16 @@ describe('Plan output', () => {
9694 cy . executeCommand ( ':clear' )
9795 cy . executeCommand ( 'CREATE (:Tag)' )
9896 cy . executeCommand ( ':clear' )
99- cy . executeCommand ( `PROFILE MATCH (tag:Tag){shift}{enter}
100- WHERE tag.name IN ["Eutheria"]
101- WITH tag
102- MATCH (publication)-[:HAS_TAG]->(tag)
103- WHERE SIZE((publication)-[:HAS_TAG]->()) = 1
104- WITH publication, tag
105- MATCH (expert)-[:PUBLISHED]->(publication)
106- WITH expert, collect(DISTINCT publication) AS publications, count(DISTINCT publication) AS relevantNumberOfPublications
107- RETURN expert.name, publications, relevantNumberOfPublications, 1 AS relevantNumberOfTags
108- ORDER BY relevantNumberOfPublications DESC
109- LIMIT 50;` )
97+ cy . executeCommand ( `PROFILE MATCH (tag:Tag){shift}{enter}WHERE tag.name IN ["Eutheria"]
98+ WITH tag
99+ MATCH (publication)-[:HAS_TAG]->(tag)
100+ WHERE SIZE([(publication)-[:HAS_TAG]->() | publication]) = 1
101+ WITH publication, tag
102+ MATCH (expert)-[:PUBLISHED]->(publication)
103+ WITH expert, collect(DISTINCT publication) AS publications, count(DISTINCT publication) AS relevantNumberOfPublications
104+ RETURN expert.name, publications, relevantNumberOfPublications, 1 AS relevantNumberOfTags
105+ ORDER BY relevantNumberOfPublications DESC
106+ LIMIT 50;` )
110107 cy . get ( '[data-testid="planExpandButton"]' , { timeout : 10000 } ) . click ( )
111108 const el = cy . get ( '[data-testid="planSvg"]' , { timeout : 10000 } )
112109 el . then ( $el => {
@@ -136,7 +133,7 @@ describe('Plan output', () => {
136133
137134 cy . executeCommand ( ':clear' )
138135 cy . executeCommand (
139- 'profile match (n:Person) with n where size ( (n)-[:Follows]->()) > 6 return n;'
136+ 'profile match (n:Person) with n where size ([ (n)-[:Follows]->() | n] ) > 6 return n;'
140137 )
141138 cy . get ( '[data-testid="planExpandButton"]' , { timeout : 10000 } ) . click ( )
142139 const el2 = cy . get ( '[data-testid="planSvg"]' , { timeout : 10000 } )
0 commit comments