Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit 1c89ac8

Browse files
authored
Merge pull request #1393 from alinadivante/feature/more-integration-tests
basic-client-path, checkout-page, local-storage and login-path tests …
2 parents e5e45da + 0bf8100 commit 1c89ac8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

cypress/integration/basic-client-path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ describe('basic client path', () => {
55
indexedDB.deleteDatabase('shop')
66
cy.clearLocalStorage()
77
cy.reload()
8-
cy.get(':nth-child(6) > .product > .no-underline > .product-image > img')
8+
cy.get(':nth-child(8) > .product > .no-underline > .product-image > img')
99
.first()
1010
.click({ force: true })
1111
cy.get('[data-testid=addToCart]').click()

cypress/integration/checkout-page.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ describe('checkout page', () => {
66
cy.clearLocalStorage()
77
cy.get('.header button')
88
.last()
9-
.click()
9+
.click({ force: true })
1010
cy.get('[name=email]').type('[email protected]')
1111
cy.get('[name=password]').type('123qwe!@#')
1212
cy.get('#remember').check({ force: true })
13-
cy.get('.button-full').click()
14-
cy.get('.col-xs-4 > div').click()
13+
cy.get('.button-full').click({ force: true })
14+
cy.wait(200)
15+
cy.get('.col-xs-4 > div').click({ force: true })
1516
cy.get(
1617
'.VueCarousel-inner > :nth-child(3) > .product > .no-underline > .product-image > img'
1718
).click({ force: true })

cypress/integration/local-storage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('local-storage', () => {
3131
.clear()
3232
.type('2')
3333
.blur()
34-
cy.get('.cl-success').click()
34+
cy.get('.summary').click()
3535
cy.reload()
3636
cy.get('header [aria-label="Open microcart"]').click({ force: true })
3737
cy.get('.col-xs > .h5 > .weight-700').should('contain', '2')

cypress/integration/login-path.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ describe('login path', () => {
44
cy.setCookie('shop/claims/onboardingAccepted', 'test')
55
indexedDB.deleteDatabase('shop')
66
cy.clearLocalStorage()
7-
cy.setCookie('shop/claims/onboardingAccepted', 'test')
87
cy.get('.header button')
98
.last()
109
.click({ force: true })

0 commit comments

Comments
 (0)