Skip to content

Commit c7059df

Browse files
committed
test(e2e): url parameter
close #24
1 parent 69fef72 commit c7059df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ context('Function Documentation', () => {
3333
describe('simple search', () => {
3434
it('should find article with extended markdown contents and code highlighting', () => {
3535
cy.get('#query-field')
36-
.type('file:sync')
36+
.type('file:sync{enter}')
3737
cy.get('.function-head > h4')
3838
.should('exist')
3939
.click()
40-
// code is highlighted
40+
cy.url()
41+
.should('include', 'q=file')
42+
// code is highlighted
4143
cy.get('.language-xquery')
4244
.should('exist')
4345
// button is visible

0 commit comments

Comments
 (0)