Skip to content

Commit 223b9e3

Browse files
committed
remove comments, also remove old test
1 parent a53014b commit 223b9e3

File tree

2 files changed

+0
-94
lines changed

2 files changed

+0
-94
lines changed

cypress/e2e/browse.cy.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -76,44 +76,29 @@ describe('Browsing', () => {
7676
error = false
7777
})
7878
it('has a blank query', () => {
79-
// Find the search button and perform an empty search, which should lead to the browse page
8079
cy.get('button.search-button').click()
81-
// The new url should include "/browse"
8280
cy.url().should('include', '/browse')
83-
// The new url should not contain a query
8481
cy.url().should('not.include', '?')
85-
// The search bar on the browse page should remain blank
8682
cy.get('input.search-bar').should('have.value', '')
87-
// The service card component should be visible
8883
cy.get(".card[data-cy='item-card']").should('be.visible')
8984
})
9085

9186
it('has a query term', () => {
92-
// Type an example search into the searchbar
9387
cy.get('input.search-bar').type('test')
94-
// Press the search button
9588
cy.get('button.search-button').click()
96-
// The new url should include the query
9789
cy.url().should('include', '/browse?q=test')
98-
// The search bar on the browse page should have the text that was searched for
9990
cy.get('input.search-bar').should('have.value', 'test')
100-
// The service card component should be visible
10191
cy.get(".card[data-cy='item-card']").should('be.visible')
10292
})
10393

10494
before(() => {
10595
wares = false
10696
})
10797
it('has a query term, but that term has no results', () => {
108-
// type an example search into the searchbar
10998
cy.get('input.search-bar').type('asdfghjk')
110-
// Press the search button
11199
cy.get('button.search-button').click()
112-
// The new url should include the query
113100
cy.url().should('include', '/browse?q=asdfghjk')
114-
// The search bar on the browse page should have the text that was searched for
115101
cy.get('input.search-bar').should('have.value', 'asdfghjk')
116-
// The message showing that there are no results should show
117102
cy.get("p[data-cy='no-results']").should('contain', 'Your search for asdfghjk returned no results')
118103
})
119104
})
@@ -137,28 +122,18 @@ describe('Browsing', () => {
137122

138123
context('a search is completed successfully and', () => {
139124
it('navigates to "/browse" with a blank query', () => {
140-
// Find the search button and perform an empty search, which should lead to the browse page
141125
cy.get('button.search-button').click()
142-
// The new url should include "/browse"
143126
cy.url().should('include', '/browse')
144-
// The new url should not contain a query
145127
cy.url().should('not.include', '?')
146-
// The search bar on the browse page should remain blank
147128
cy.get('input.search-bar').should('have.value', '')
148-
// The service card component should be visible
149129
cy.get(".card[data-cy='item-card']").should('be.visible')
150130
})
151131

152132
it('navigates to "/browse" with a query term', () => {
153-
// type an example search into the searchbar
154133
cy.get('input.search-bar').type('test')
155-
// Press the search button
156134
cy.get('button.search-button').click()
157-
// The new url should include the query
158135
cy.url().should('include', '/browse?q=test')
159-
// The search bar on the browse page should have the text that was searched for
160136
cy.get('input.search-bar').should('have.value', 'test')
161-
// The service card component should be visible
162137
cy.get(".card[data-cy='item-card']").should('be.visible')
163138
})
164139
})

cypress/e2e/browsing.cy.js

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)