@@ -90,15 +90,6 @@ select * {
9090 ?a rdf:b ?c ;
9191 rdf:d "e" ;
9292 rdf:f rdf:g .
93- }` ) ;
94- } ) ;
95- it ( "With group concat" , async function ( ) {
96- const value = await page . evaluate ( ( ) => {
97- window . yasqe . setValue ( `select (group_concat(str(?a); separator='" "') as ?b) { }` ) ;
98- window . yasqe . autoformat ( ) ;
99- return window . yasqe . getValue ( ) ;
100- } ) ;
101- expect ( value ) . to . equal ( `select (group_concat(str(?a); separator='" "') as ?b) {
10293}` ) ;
10394 } ) ;
10495 } ) ;
@@ -376,33 +367,6 @@ PREFIX geo: <http://www.opengis.net/ont/geosparql#> select
376367 expect ( newValue ) . to . equal ( "select * where { ?subject ?predicate ?subject}" ) ;
377368 } ) ;
378369
379- it ( "Should scope to only one part of a path expression" , async ( ) => {
380- const oneLineQuery = "PREFIX testa: <https://test.a.com/> select * where { ?subject testa:/testa:2/testa:3" ;
381-
382- await page . evaluate ( ( ) => {
383- const oneLineQuery = "PREFIX testa: <https://test.a.com/> select * where { ?subject testa:/testa:2/testa:3" ;
384- window . yasqe . setValue ( oneLineQuery ) ;
385- window . yasqe . focus ( ) ;
386- window . yasqe . getDoc ( ) . setCursor ( { line : 0 , ch : oneLineQuery . length - 1 } ) ;
387- } ) ;
388- let token = await getCompleteToken ( ) ;
389- expect ( token . string ) . to . equal ( "testa:3" ) ;
390- token = await getCompleteTokenAt ( oneLineQuery . length - 8 ) ;
391- expect ( token . string ) . to . equal ( "testa:2" ) ;
392- token = await getCompleteTokenAt ( oneLineQuery . length - 16 ) ;
393- expect ( token . string ) . to . equal ( "testa:" ) ;
394-
395- //token is now in beginning of property path
396- await issueAutocompletionKeyCombination ( ) ;
397- await waitForAutocompletionPopup ( ) ;
398-
399- await page . keyboard . press ( "Enter" ) ;
400- const newValue = await page . evaluate ( ( ) => window . yasqe . getValue ( ) ) ;
401- expect ( newValue ) . to . equal (
402- "PREFIX testa: <https://test.a.com/> select * where { ?subject testa:0/testa:2/testa:3" ,
403- ) ;
404- } ) ;
405-
406370 it ( "Should deal with infinished full iri" , async ( ) => {
407371 await page . evaluate ( ( ) => {
408372 const oneLineQuery = "select * where { ?subject <http://www.opengis.net/ont/geosparql# ?s" ;
@@ -456,19 +420,6 @@ PREFIX geo: <http://www.opengis.net/ont/geosparql#> select
456420 expect ( token . string ) . to . equal ( "<http://www.opengis.net/ont/geosparql#" ) ;
457421 } ) ;
458422
459- it ( "Autocompleter should show suggestion directly after function #156" , async ( ) => {
460- await page . evaluate ( ( ) => {
461- const oneLineQuery = "select * where { bind(" ;
462- window . yasqe . setValue ( oneLineQuery ) ;
463- window . yasqe . focus ( ) ;
464- window . yasqe . getDoc ( ) . setCursor ( { line : 0 , ch : oneLineQuery . indexOf ( "(" ) + 1 } ) ;
465- } ) ;
466- const token = await getCompleteToken ( ) ;
467- expect ( token . state . possibleCurrent ) . contains (
468- "IRI_REF" ,
469- `IRI_REF not found in list: "${ token . state . possibleCurrent . join ( '", "' ) } "` ,
470- ) ;
471- } ) ;
472423 it ( "Autocompleter should show literal suggestion directly after function #156" , async ( ) => {
473424 await page . evaluate ( ( ) => {
474425 const oneLineQuery = 'select * where { bind("' ;
@@ -482,19 +433,6 @@ PREFIX geo: <http://www.opengis.net/ont/geosparql#> select
482433 `IRI_REF not found in list: "${ token . state . possibleCurrent . join ( '", "' ) } "` ,
483434 ) ;
484435 } ) ;
485- it ( "Autocompleter should show correct results after closing bracket" , async ( ) => {
486- await page . evaluate ( ( ) => {
487- const oneLineQuery = "select * where { ?s ?p ?o }" ;
488- window . yasqe . setValue ( oneLineQuery ) ;
489- window . yasqe . focus ( ) ;
490- window . yasqe . getDoc ( ) . setCursor ( { line : 0 , ch : oneLineQuery . indexOf ( "}" ) + 1 } ) ;
491- } ) ;
492- const token = await getCompleteToken ( ) ;
493- expect ( token . state . possibleCurrent ) . contains (
494- "LIMIT" ,
495- `LIMIT not found in list: "${ token . state . possibleCurrent . join ( '", "' ) } "` ,
496- ) ;
497- } ) ;
498436 } ) ;
499437 /**
500438 * This test is tricky, as it uses the LOV API in our test. I.e, if this test fails, first check whether LOV is actually up
0 commit comments