File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -19,4 +19,26 @@ describe(`My first test`, () => {
19
19
cy . get ( 'div.dsb-suggestion:nth-child(1)' ) // the first entry should be "Quick start"
20
20
. contains ( 'Quick start' )
21
21
} )
22
+
23
+ it ( 'Should test all other subheadings' , ( ) => {
24
+ cy . get ( 'div.dsb-suggestion:nth-child(2)' ) // the second entry should be "Download and launch"
25
+ . contains ( 'Download and launch' )
26
+ cy . get ( 'div.dsb-suggestion:nth-child(3)' ) // the third entry should be "Add documents"
27
+ . contains ( 'Add documents' )
28
+ } )
29
+
30
+ it ( 'Should have valid placeholder text' , ( ) => {
31
+ cy . get ( '#docs-searchbar-suggestion' ) . should (
32
+ 'have.attr' ,
33
+ 'placeholder' ,
34
+ 'Search the docs' ,
35
+ )
36
+ } )
37
+
38
+ it ( 'Should display a no results message when search results are empty' , ( ) => {
39
+ cy . get ( '#docs-searchbar-suggestion' ) . type ( ' empty results' )
40
+ cy . get ( '#meilisearch-autocomplete-listbox-0' ) . should ( 'be.visible' )
41
+ cy . get ( 'div.docs-searchbar-suggestion' ) // No Results message should be displayed instead
42
+ . contains ( 'No results found for query' )
43
+ } )
22
44
} )
You can’t perform that action at this time.
0 commit comments