Skip to content

Commit

Permalink
Test that when you deselect a report, no report info is shown (wearef…
Browse files Browse the repository at this point in the history
…rank#107)

Co-authored-by: Martijn Dirkse <martijn@integrationpartners.nl>
mhdirkse and Martijn Dirkse authored Mar 21, 2022
1 parent b3065f6 commit e397f54
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cypress/integration/debug_aboutOpenedReports.spec.js
Original file line number Diff line number Diff line change
@@ -56,6 +56,18 @@ describe('About opened reports', function() {
checkNodeInfo('otherName');
});

it('When you deselect the selected report, no info is shown anymore', function() {
cy.get('.table-responsive tbody tr td:contains(name)').first().click();
cy.get('div.treeview > ul > li').should('have.length', 3);
cy.get('div.treeview > ul > li:eq(1)').should('have.class', 'node-selected');
cy.get('div.treeview > ul > li.node-selected').should('have.length', 1);
cy.get('#displayedNodeTable tr:eq(0) td:eq(0)').should('have.text', 'Name').should('be.visible');
cy.get('#displayedNodeTable tr:eq(0) td:eq(1)').should('have.text', 'name').should('be.visible');
// Deselect
cy.get('div.treeview > ul > li:eq(1)').click();
cy.get('#displayedNodeTable').should('not.exist');
});

it('If there are open reports, then always one of them is selected', function() {
cy.get('.table-responsive tbody').find('tr').contains('name').click();
cy.get('div.treeview > ul > li').should('have.length', 3).each((node) => {

0 comments on commit e397f54

Please sign in to comment.