Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Oct 15, 2020
1 parent f161d11 commit 9278a45
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 39 deletions.
21 changes: 21 additions & 0 deletions test/e2e/search.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,26 @@ describe('Search Plugin Tests', function() {
await expect(page).toEqualText('.results-panel h2', 'Test Page');
});

test('search ignore title', async () => {
const docsifyInitConfig = {
markdown: {
homepage: `
# Hello World
This is the homepage.
## Test ignore title <!-- {docsify-ignore} -->
This is the test ignore title.
`,
},
scriptURLs: ['/lib/plugins/search.min.js'],
styleURLs: ['/lib/themes/vue.css'],
};
await docsifyInit(docsifyInitConfig);
await page.fill('input[type=search]', 'Test ignore title');
expect(await page.innerText('.results-panel h2')).toEqual(
'Test ignore title'
);
});
});
39 changes: 0 additions & 39 deletions test/e2e/sidebar.test.js

This file was deleted.

0 comments on commit 9278a45

Please sign in to comment.