Skip to content

Commit

Permalink
Correct tests about XML storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Dirkse committed Nov 22, 2024
1 parent 4bd927b commit 35aca5e
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// This test should be run as the first. Other tests
// have to delete all reports from the test tab and
// would remove pre-existing reports.
//
// Furthermore, we need an empty test tab in case
// there are no predefined reports.
//
describe('Compare with and without profile xml.storage', () => {
beforeEach(() => {
cy.initializeApp();
Expand All @@ -10,7 +17,9 @@ describe('Compare with and without profile xml.storage', () => {
})
} else {
it('Report present in src/test/testtool should not be shown', () => {
cy.getTestTableRows().contains('Pre existing report').should('not.exist')
// We cannot search for 'Pre existing report' within the
// test rows when there are not table rows at all.
cy.getTestTableRows().should('not.exist')
})
}
})

0 comments on commit 35aca5e

Please sign in to comment.