Skip to content

Commit 41b21b5

Browse files
committed
update
1 parent 443bafa commit 41b21b5

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
})

0 commit comments

Comments
 (0)