Skip to content

Commit a43f99e

Browse files
committed
test: ensure parameter descriptions are searched
1 parent c9e990a commit a43f99e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/test/cypress/integration/fundoc_spec.cy.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,28 @@ context('Function Documentation', () => {
3939
})
4040
})
4141

42+
describe('searching everywhere includes parameter description', () => {
43+
it('should find file:sync with search term "exist_home"', () => {
44+
cy.get('#query-field')
45+
.type('exist_home{enter}')
46+
cy.get('.function-head')
47+
.should('exist')
48+
.click()
49+
cy.url()
50+
.should('include', 'q=exist_home')
51+
// code is highlighted
52+
cy.get('.language-xquery')
53+
.should('exist')
54+
// button is visible
55+
cy.get('.extended-docs')
56+
.should('exist')
57+
.click()
58+
// displays MD
59+
cy.get('zero-md')
60+
.should('exist')
61+
})
62+
})
63+
4264
describe('browse', () => {
4365
it('should find local modules', () => {
4466
cy.get('#browse')

0 commit comments

Comments
 (0)