File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -35,4 +35,27 @@ describe('Search Plugin Tests', function() {
35
35
await page . fill ( 'input[type=search]' , 'test' ) ;
36
36
await expect ( page ) . toEqualText ( '.results-panel h2' , 'Test Page' ) ;
37
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
+ } ) ;
38
61
} ) ;
You can’t perform that action at this time.
0 commit comments