File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
cypress/e2e/paths/frontend Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ describe ( 'Check Advanced search' , ( ) => {
2+ it ( 'tests response' , ( ) => {
3+ cy . request ( {
4+ url : '/catalogsearch/advanced/' ,
5+ followRedirect : false ,
6+ } ) . then ( ( response ) => {
7+ expect ( response . status ) . to . eq ( 200 )
8+ expect ( response . body ) . to . not . have . length ( 0 )
9+ } )
10+ } )
11+
12+ it ( 'tests response for valid search param' , ( ) => {
13+ cy . request ( {
14+ url : '/catalogsearch/advanced/result/?name=glas/' ,
15+ followRedirect : false ,
16+ } ) . then ( ( response ) => {
17+ expect ( response . status ) . to . eq ( 200 )
18+ expect ( response . body ) . to . not . have . length ( 0 )
19+ } )
20+ } )
21+
22+ it ( 'tests response for invalid search param' , ( ) => {
23+ cy . request ( {
24+ url : '/catalogsearch/advanced/result/?invalidParam=2/' ,
25+ followRedirect : false ,
26+ } ) . then ( ( response ) => {
27+ expect ( response . status ) . to . eq ( 302 )
28+ expect ( response . body ) . to . have . length ( 0 )
29+ } )
30+ } )
31+ } )
You can’t perform that action at this time.
0 commit comments