Skip to content

Commit 219e91e

Browse files
committed
test(ci): rebalance test
skip doc and collection test for faster feedback make #508 harder to ignore
1 parent ed72601 commit 219e91e

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
curl -v --connect-timeout 4 --max-time 8 http://localhost:3000
7676
- run:
7777
working_directory: .
78-
command: npx cypress run --config defaultCommandTimeout=40000
78+
command: npx cypress run --config defaultCommandTimeout=20000
7979
# command: npx cypress run -b chrome --config defaultCommandTimeout=58000
8080
no_output_timeout: 2m
8181
workflows:

cypress/integration/01_api-spec.js

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ context('Talking to the api directly', () => {
2020
})
2121
})
2222
describe('With current API', () => {
23-
it('should call all endpoints', () => {
23+
it('should reach all api endpoints', () => {
2424
cy.window().then(function (win) {
2525
const fetchSpy = cy.spy(win, 'fetch')
2626
fetchSpy.withArgs(Cypress.env('API_HOST') + '/exist/restxq/fusiondb/version').as('/version')
@@ -41,14 +41,27 @@ context('Talking to the api directly', () => {
4141
})
4242
})
4343

44-
it('should display tree roots', () => {
44+
// (DP) we might want to merge the three cases again at a future time
45+
it('should display db tree item', () => {
4546
cy.contains('localhost').click()
4647
cy.get('.fusion-view')
4748
.should('contain', 'db')
48-
.should('contain', 'Security')
49-
// see #508
49+
// .should('contain', 'Security')
5050
// .should('contain', 'RestXQ')
5151
})
52+
53+
it('should display security tree item', () => {
54+
cy.contains('localhost')
55+
cy.get('.fusion-view')
56+
.should('contain', 'Security')
57+
})
58+
59+
// see #508
60+
it.skip('should display restxq tree item', () => {
61+
cy.contains('localhost')
62+
cy.get('.fusion-view')
63+
.should('contain', 'RestXQ')
64+
})
5265
})
5366
})
5467
})

cypress/integration/04_document_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="Cypress" />
22

3-
context('Document Operations', () => {
3+
context.skip('Document Operations', () => {
44
describe('working with tree view', () => {
55
before(() => {
66
cy.connect()

cypress/integration/05_collection_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="Cypress" />
22

3-
context('Collection Operations', () => {
3+
context.skip('Collection Operations', () => {
44
let fetchSpy;
55
describe('working with tree view', () => {
66
before(() => {

0 commit comments

Comments
 (0)