Skip to content

Commit b9c2e0b

Browse files
committed
Fix cypress
From https://docs.cypress.io/api/commands/visit#Syntax: Cypress will prefix the URL with the baseUrl configured in your network options if you've set one. From cypress.json: "baseUrl": "http://localhost:8080/exist/apps/doc/" So cy.visit(‘.’) was causing cypress to request: http://localhost:8080/exist/apps/doc/. I’m not able to simulate this request, so I can’t reproduce it to see eXist returning an application/xml content-type header, but it’s clear that removing the period ensures the request goes to the intended URL: http://localhost:8080/exist/apps/doc/
1 parent c5e8a28 commit b9c2e0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/cypress/integration/documentation_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
context('Documentation', () => {
55
beforeEach(() => {
6-
cy.visit('.')
6+
cy.visit('')
77
})
88
describe('landing article', () => {
99
it('should have content prose', () => {

0 commit comments

Comments
 (0)