mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
test: fix cannot search list content (#1367)
Co-authored-by: 沈唁 <52o@qq52o.cn>
This commit is contained in:
parent
8d17dcbe68
commit
14fdbd42ef
17
cypress/integration/search/config.spec.js
Normal file
17
cypress/integration/search/config.spec.js
Normal 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');
|
||||
})
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user