Skip to content

Commit 9278a45

Browse files
committed
update
1 parent f161d11 commit 9278a45

File tree

2 files changed

+21
-39
lines changed

2 files changed

+21
-39
lines changed

test/e2e/search.test.js

+21
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,26 @@ describe('Search Plugin Tests', function() {
3636
await expect(page).toEqualText('.results-panel h2', 'Test Page');
3737
});
3838

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} -->
3948
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+
});
4061
});

test/e2e/sidebar.test.js

-39
This file was deleted.

0 commit comments

Comments
 (0)