Skip to content

Commit 14fdbd4

Browse files
test: fix cannot search list content (#1367)
Co-authored-by: 沈唁 <[email protected]>
1 parent 8d17dcb commit 14fdbd4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
+17
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)