* fix/155: fix css polution on detached views
* fix/155: test detached routes
This commit is contained in:
Carlos Valente
2022-06-16 14:27:13 +02:00
committed by GitHub
parent 1f001cf188
commit c1de3190e9
3 changed files with 94 additions and 97 deletions
+19 -4
View File
@@ -49,13 +49,28 @@ describe('validate routes', () => {
it('self contained editor routes', () => {
cy.visit('http://localhost:4001/eventlist');
cy.contains('Event List');
cy.get('.App').should('contain', 'Event List');
cy.get('.App').should('not.contain', 'Timer Control');
cy.get('.App').should('not.contain', 'Messages Control');
cy.get('.App').should('not.contain', 'Info');
cy.visit('http://localhost:4001/timercontrol');
cy.contains('Timer Control');
cy.get('.App').should('not.contain', 'Event List');
cy.get('.App').should('contain', 'Timer Control');
cy.get('.App').should('not.contain', 'Messages Control');
cy.get('.App').should('not.contain', 'Info');
cy.visit('http://localhost:4001/messagecontrol');
cy.contains('Messages Control');
cy.get('.App').should('not.contain', 'Event List');
cy.get('.App').should('not.contain', 'Timer Control');
cy.get('.App').should('contain', 'Messages Control');
cy.get('.App').should('not.contain', 'Info');
cy.visit('http://localhost:4001/info');
cy.contains('Info');
cy.get('.App').should('not.contain', 'Event List');
cy.get('.App').should('not.contain', 'Timer Control');
cy.get('.App').should('not.contain', 'Messages Control');
cy.get('.App').should('contain', 'Info');
});
it('table routes', () => {