Skip to content

Commit 367357d

Browse files
committed
[add test] add test for PR docsifyjs#1361.
1 parent 1dbb547 commit 367357d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
context('sidebar.search', () => {
2+
beforeEach(() => {
3+
cy.visit('http://localhost:3000');
4+
});
5+
6+
it('search list',()=>{
7+
cy.get(':input[type=search]')
8+
9+
.type("npm i -g now")
10+
11+
.should('have.value', 'npm i -g now');
12+
13+
cy.get(
14+
'.results-panel>.matching-post p>em'
15+
). should('contain', 'npm i -g now');
16+
})
17+
});

0 commit comments

Comments
 (0)