@@ -127,7 +127,6 @@ describe('Testing the feature selection', () => {
127127 checkFeatures ( )
128128 checkFeatureInfoPosition ( FeatureInfoPositions . ToolTip )
129129 } )
130-
131130 it ( 'Synchronise URL and feature selection' , ( ) => {
132131 const expectedFeatureIds = [ 1234 , 5678 ]
133132 const mapSelector = '[data-cy="ol-map"]'
@@ -137,7 +136,7 @@ describe('Testing the feature selection', () => {
137136 } ,
138137 } )
139138 cy . url ( ) . should ( ( url ) => {
140- expect ( new URLSearchParams ( url . split ( 'map' ) [ 1 ] ) . get ( 'featureInfo' ) ) . to . eq ( undefined )
139+ expect ( new URLSearchParams ( url . split ( 'map' ) [ 1 ] ) . get ( 'featureInfo' ) ) . to . eq ( null )
141140 } )
142141
143142 cy . log ( 'Check that the features appear in the URL' )
@@ -192,7 +191,8 @@ describe('Testing the feature selection', () => {
192191
193192 cy . log ( 'Check that after a reload, features remain selected' )
194193 cy . reload ( )
195- cy . wait ( `@featureDetail_${ expectedFeatureIds [ 1 ] } ` )
194+ cy . wait ( [ '@layerConfig' , '@topics' ] )
195+ cy . wait ( `@featureDetail_${ expectedFeatureIds [ 1 ] } ` , { timeout : 10000 } )
196196 cy . url ( ) . should ( ( url ) => {
197197 new URLSearchParams ( url . split ( 'map' ) [ 1 ] )
198198 . get ( 'layers' ) !
@@ -219,6 +219,7 @@ describe('Testing the feature selection', () => {
219219 . should ( 'be.visible' )
220220 . click ( )
221221 cy . closeMenuIfMobile ( )
222+ cy . wait ( `@htmlPopup` )
222223
223224 cy . get ( mapSelector ) . click ( )
224225 cy . wait ( `@${ timeLayer } _identify` )
@@ -241,7 +242,6 @@ describe('Testing the feature selection', () => {
241242 }
242243 } )
243244 } )
244-
245245 cy . log ( 'Check that upon closing, the features are no longer in the URL' )
246246 cy . get ( '[data-cy="infobox-close"]' ) . click ( )
247247 cy . get ( '[data-cy="highlighted-features"]' ) . should ( 'not.exist' )
@@ -369,7 +369,6 @@ describe('Testing the feature selection', () => {
369369 assertDefined ( location [ 1 ] )
370370 cy . get ( '@olMap' ) . click ( location [ 0 ] , location [ 1 ] , { ctrlKey } )
371371 }
372-
373372 it ( 'can select an area to identify features inside it' , ( ) => {
374373 const fileName = 'external-kml-file.kml'
375374 const localKmlFile = `import-tool/${ fileName } `
@@ -526,7 +525,6 @@ describe('Testing the feature selection', () => {
526525 cy . get ( '@identifySingleFeature.all' ) . should ( 'have.length' , 1 )
527526 cy . get ( '@emptyIdentify.all' ) . should ( 'have.length' , 1 )
528527 } )
529-
530528 it ( 'can select feature by click, add more feature, and deselect feature' , ( ) => {
531529 const fileName = '4-points.kml'
532530 const localKmlFile = `import-tool/${ fileName } `
@@ -598,7 +596,6 @@ describe('Testing the feature selection', () => {
598596 } )
599597 } )
600598 } )
601-
602599 it ( 'can print feature information' , ( ) => {
603600 const fileName = 'external-kml-file.kml'
604601 const localKmlFile = `import-tool/${ fileName } `
0 commit comments