Skip to content

Commit

Permalink
🐞 fix(simple): assert Solr-Query
Browse files Browse the repository at this point in the history
  • Loading branch information
duncdrum committed Feb 12, 2024
1 parent d079eb3 commit 2f9ce9f
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion cypress/e2e/simple.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe.skip('connecting to ', () => {
})
})

describe('vudfind 6', () => {
describe('vufind 6', () => {
// This requires http proxy and should only work from internal network
it('should GET results via request', () => {
cy.request({
Expand All @@ -31,6 +31,24 @@ describe.skip('connecting to ', () => {
}).then((resp) => {
expect(resp.status).to.eq(200)
})
})

// Solr-Query is only logged to console on test servers
it('sees SOLR-Query', () => {

cy.visit({
url: 'http://b-dev20220203-vufind-6/Search/Results',
qs: {
lookfor: 'dad',
type: 'AllFields'
},
onBeforeLoad(win) {
cy.spy(win.console, 'log').as('consoleLog')
}
})

cy.get('@consoleLog')
.should('be.called')

})
})
Expand Down

0 comments on commit 2f9ce9f

Please sign in to comment.