44 clickFilter ,
55 perPage ,
66 search ,
7- sortBy
87} from '../../support/common' ;
98import Elements from '../../support/elements' ;
109
@@ -20,7 +19,7 @@ describe('Clear Filters',() => {
2019
2120 it ( 'Clear chip refinement' , ( ) => {
2221 cy . url ( )
23- . should ( 'include' , '? license=CC%20BY' ) ;
22+ . should ( 'include' , 'license=CC%20BY' ) ;
2423
2524 cy . get ( '[data-cy=chip-filter]' ) . should ( 'have.length' , 3 ) ;
2625
@@ -31,12 +30,12 @@ describe('Clear Filters',() => {
3130 cy . get ( '[data-cy=chip-filter]' ) . should ( 'have.length' , 2 ) ;
3231
3332 cy . url ( )
34- . should ( 'include' , '? license=CC%20BY-NC-SA%26%26All%20Rights%20Reserved' ) ;
33+ . should ( 'include' , 'license=CC%20BY-NC-SA%26%26All%20Rights%20Reserved' ) ;
3534 } ) ;
3635
3736 it ( 'Clear all refinements' , ( ) => {
3837 cy . url ( )
39- . should ( 'include' , '? license=CC%20BY' ) ;
38+ . should ( 'include' , 'license=CC%20BY' ) ;
4039
4140 cy . get ( '[data-cy=chip-filter]' ) . should ( 'have.length' , 3 ) ;
4241
@@ -47,12 +46,11 @@ describe('Clear Filters',() => {
4746 cy . get ( '[data-cy=chip-filter]' ) . should ( 'have.length' , 0 ) ;
4847
4948 cy . url ( )
50- . should ( 'not.contain' , '? ' ) ;
49+ . should ( 'not.contain' , '& ' ) ;
5150 } ) ;
5251
5352 it ( 'Clear all refinements should not reset search, per page, and sorting' , ( ) => {
5453 perPage ( 20 ) ;
55- sortBy ( 'Word count' ) ;
5654 search ( 'education' ) ;
5755
5856 cy . url ( )
0 commit comments