|
|
@@ -0,0 +1,18 @@
|
|
|
+
|
|
|
+describe('Test the /structures page', () => {
|
|
|
+ beforeEach(() => {
|
|
|
+ cy.visit('/structures/498')
|
|
|
+ })
|
|
|
+
|
|
|
+ it('Expected elements are presents', () => {
|
|
|
+ cy.get('h2').contains('Orchestre d\'Harmonie de Cluses')
|
|
|
+ cy.get('.v-chip').contains('Orchestre d\'harmonie')
|
|
|
+ cy.get('h4').contains('Descriptif')
|
|
|
+ cy.get('h4').contains('Contact')
|
|
|
+
|
|
|
+ // leaflet map is visible and was correctly instanciated
|
|
|
+ cy.get('#map', { timeout: 8000 })
|
|
|
+ .should('be.visible')
|
|
|
+ .children('.leaflet-pane')
|
|
|
+ })
|
|
|
+})
|