Skip to content

Commit f213961

Browse files
committed
fix(05): make cleanup actualy do its job again
1 parent 9866319 commit f213961

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cypress/integration/05_collection_spec.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,15 @@ context('Collection Operations', () => {
145145
cy.get('.main')
146146
.click()
147147
cy.get('@fetch').should('be.calledWithMatch', Cypress.env('API_HOST') + '/exist/restxq/fusiondb/collection?uri=/db/test_col2', { method: 'DELETE' });
148-
// make sure all test files are gone see #400
148+
// make sure all test files are gone see #400, including those produced by failed create commands
149+
cy.get('[node-id$=untitled-1]')
150+
.should('not.exist')
151+
cy.get('[node-id$=untitled-2]')
152+
.should('not.exist')
153+
cy.get('[node-id$=test_col]')
154+
.should('not.exist')
155+
cy.get('[node-id$=test_col1]')
156+
.should('not.exist')
149157
cy.get('[node-id$=test_col2]')
150158
.should('not.exist')
151159
cy.get('[node-id$=test_colA]')

0 commit comments

Comments
 (0)