Skip to content

Commit 531182c

Browse files
committed
formatting
1 parent 733458a commit 531182c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

cypress/e2e/home.cy.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ describe('Navigating to the home page', () => {
4545
defaultFixture: 'services/wares.json',
4646
})
4747

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+
})
5454

5555
it('with a valid query term', () => {
5656
testSetup({
@@ -59,12 +59,12 @@ describe('Navigating to the home page', () => {
5959
defaultFixture: 'services/filtered-wares.json',
6060
})
6161

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+
})
6868

6969
it('with an invalid query term', () => {
7070
const invalidQuery = 'asdfghjk'

0 commit comments

Comments
 (0)