test: fix cannot search list content (#1367)

Co-authored-by: 沈唁 <52o@qq52o.cn>
This commit is contained in:
Koy 2020-09-04 08:46:43 +08:00 committed by GitHub
parent 8d17dcbe68
commit 14fdbd42ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,17 @@
context('sidebar.search', () => {
beforeEach(() => {
cy.visit('http://localhost:3000');
});
it('search list',()=>{
cy.get(':input[type=search]')
.type("npm i -g now")
.should('have.value', 'npm i -g now');
cy.get(
'.results-panel>.matching-post p>em'
). should('contain', 'npm i -g now');
})
});