We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c097f5 commit a706e57Copy full SHA for a706e57
test/e2e/sidebar.test.js
@@ -13,4 +13,27 @@ describe('Sidebar Tests', function() {
13
await page.innerText('.results-panel > .matching-post > a > h2')
14
).toEqual('Donate');
15
});
16
+
17
+ test('search ignore title', async () => {
18
+ const docsifyInitConfig = {
19
+ markdown: {
20
+ homepage: `
21
+ # Hello World
22
23
+ This is the homepage.
24
25
+ ## Test ignore title <!-- {docsify-ignore} -->
26
27
+ This is the test ignore title.
28
+ `,
29
+ },
30
+ scriptURLs: ['/lib/plugins/search.min.js'],
31
+ styleURLs: ['/lib/themes/vue.css'],
32
+ };
33
+ await docsifyInit(docsifyInitConfig);
34
+ await page.fill('input[type=search]', 'Test ignore title');
35
+ expect(await page.innerText('.results-panel h2')).toEqual(
36
+ 'Test ignore title'
37
+ );
38
+ });
39
0 commit comments