Skip to content

Commit 3960416

Browse files
committed
test: add test regenerating function documentation
1 parent feccc15 commit 3960416

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
context('Regenerating function documentation', () => {
2+
it('succeeds', () => {
3+
cy.timeout(10000); // generation needs some time
4+
cy.request({
5+
url: 'http://127.0.0.1:8080/exist/apps/fundocs/regenerate',
6+
auth: {
7+
user: 'admin',
8+
password: ''
9+
}
10+
})
11+
.then((response) => {
12+
expect(response).to.have.property('status')
13+
expect(response.status).to.equal(200)
14+
expect(response.body).to.have.property('status')
15+
expect(response.body.status).to.equal('ok')
16+
})
17+
})
18+
})

0 commit comments

Comments
 (0)