We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f161d11 commit 9278a45Copy full SHA for 9278a45
test/e2e/search.test.js
@@ -36,5 +36,26 @@ describe('Search Plugin Tests', function() {
36
await expect(page).toEqualText('.results-panel h2', 'Test Page');
37
});
38
39
+ test('search ignore title', async () => {
40
+ const docsifyInitConfig = {
41
+ markdown: {
42
+ homepage: `
43
+ # Hello World
44
+
45
+ This is the homepage.
46
47
+ ## Test ignore title <!-- {docsify-ignore} -->
48
49
+ This is the test ignore title.
50
+ `,
51
+ },
52
+ scriptURLs: ['/lib/plugins/search.min.js'],
53
+ styleURLs: ['/lib/themes/vue.css'],
54
+ };
55
+ await docsifyInit(docsifyInitConfig);
56
+ await page.fill('input[type=search]', 'Test ignore title');
57
+ expect(await page.innerText('.results-panel h2')).toEqual(
58
+ 'Test ignore title'
59
+ );
60
+ });
61
test/e2e/sidebar.test.js
0 commit comments