@@ -45,12 +45,12 @@ describe('Navigating to the home page', () => {
45
45
defaultFixture : 'services/wares.json' ,
46
46
} )
47
47
48
- cy . get ( 'button.search-button' ) . click ( )
49
- cy . url ( ) . should ( 'include' , '/browse' )
50
- cy . url ( ) . should ( 'not.include' , '?' )
51
- cy . get ( 'input.search-bar' ) . should ( 'have.value' , '' )
52
- cy . get ( ".card[data-cy='item-card']" ) . should ( 'be.visible' )
53
- } )
48
+ cy . get ( 'button.search-button' ) . click ( )
49
+ cy . url ( ) . should ( 'include' , '/browse' )
50
+ cy . url ( ) . should ( 'not.include' , '?' )
51
+ cy . get ( 'input.search-bar' ) . should ( 'have.value' , '' )
52
+ cy . get ( ".card[data-cy='item-card']" ) . should ( 'be.visible' )
53
+ } )
54
54
55
55
it ( 'with a valid query term' , ( ) => {
56
56
testSetup ( {
@@ -59,12 +59,12 @@ describe('Navigating to the home page', () => {
59
59
defaultFixture : 'services/filtered-wares.json' ,
60
60
} )
61
61
62
- cy . get ( 'input.search-bar' ) . type ( Cypress . env ( 'CYPRESS_SEARCH_QUERY' ) )
63
- cy . get ( 'button.search-button' ) . click ( )
64
- cy . url ( ) . should ( 'include' , `/browse?q=${ Cypress . env ( 'CYPRESS_SEARCH_QUERY' ) } ` )
65
- cy . get ( 'input.search-bar' ) . should ( 'have.value' , Cypress . env ( 'CYPRESS_SEARCH_QUERY' ) )
66
- cy . get ( ".card[data-cy='item-card']" ) . should ( 'be.visible' )
67
- } )
62
+ cy . get ( 'input.search-bar' ) . type ( Cypress . env ( 'CYPRESS_SEARCH_QUERY' ) )
63
+ cy . get ( 'button.search-button' ) . click ( )
64
+ cy . url ( ) . should ( 'include' , `/browse?q=${ Cypress . env ( 'CYPRESS_SEARCH_QUERY' ) } ` )
65
+ cy . get ( 'input.search-bar' ) . should ( 'have.value' , Cypress . env ( 'CYPRESS_SEARCH_QUERY' ) )
66
+ cy . get ( ".card[data-cy='item-card']" ) . should ( 'be.visible' )
67
+ } )
68
68
69
69
it ( 'with an invalid query term' , ( ) => {
70
70
const invalidQuery = 'asdfghjk'
0 commit comments