@@ -1054,21 +1054,21 @@ describe('The Import File Tool', () => {
10541054 . should ( 'be.visible' )
10551055 . should ( 'contain' , 'Invalid file, only KML, KMZ, GPX or COG file are supported' )
10561056
1057- // // ----------------------------------------------------------------------
1058- // // Attach a local KML file that is out of bounds
1059- // cy.log('Test add a local KML file that is out of bounds')
1060- // cy.fixture(outOfBoundKMLFile, undefined).as('outOfBoundKMLFileFixture')
1061- // cy.get('[data-cy="file-input"]').selectFile('@outOfBoundKMLFileFixture', {
1062- // force: true,
1063- // })
1064- // cy.get('[data-cy="import-file-load-button"]:visible').click()
1057+ //----------------------------------------------------------------------
1058+ // Attach a local KML file that is out of bounds
1059+ cy . log ( 'Test add a local KML file that is out of bounds' )
1060+ cy . fixture ( outOfBoundKMLFile , undefined ) . as ( 'outOfBoundKMLFileFixture' )
1061+ cy . get ( '[data-cy="file-input"]' ) . selectFile ( '@outOfBoundKMLFileFixture' , {
1062+ force : true ,
1063+ } )
1064+ cy . get ( '[data-cy="import-file-load-button"]:visible' ) . click ( )
10651065
1066- // cy.get('[data-cy="file-input-text"]')
1067- // .should('have.class', 'is-invalid')
1068- // .should('not.have.class', 'is-valid')
1069- // cy.get('[data-cy="file-input-invalid-feedback"]')
1070- // .should('be.visible')
1071- // .contains('out of projection bounds')
1066+ cy . get ( '[data-cy="file-input-text"]' )
1067+ . should ( 'have.class' , 'is-invalid' )
1068+ . should ( 'not.have.class' , 'is-valid' )
1069+ cy . get ( '[data-cy="file-input-invalid-feedback"]' )
1070+ . should ( 'be.visible' )
1071+ . contains ( 'out of projection bounds' )
10721072
10731073 // //----------------------------------------------------------------------
10741074 // // Attach a local empty KML file
0 commit comments