diff --git a/cypress/e2e/about-xml-storage.cy.ts b/cypress/e2e/1 about-xml-storage.cy.ts similarity index 54% rename from cypress/e2e/about-xml-storage.cy.ts rename to cypress/e2e/1 about-xml-storage.cy.ts index 821efe64..f10c9c6b 100644 --- a/cypress/e2e/about-xml-storage.cy.ts +++ b/cypress/e2e/1 about-xml-storage.cy.ts @@ -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(); @@ -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') }) } }) \ No newline at end of file