Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions cypress/integration/luma/user/account.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,15 @@ describe('Account test creation', () => {

describe('Account activities', () => {
beforeEach(() => {
cy.wait(2500)
Account.login(account.customer.customer.email, account.customer.password)
})

before(() => {
cy.wait(2500)
Magento2RestApi.createCustomerAccount(account.customer)
Account.login(account.customer.customer.email, account.customer.password)
Account.createAddress(account.customerInfo)
// We need to logout or the beforeEach will fail
if(isMobile()) {
cy.wait(2000)
}
cy.wait(2500)
Account.logout()
})

after(() => {
Expand Down Expand Up @@ -140,7 +136,6 @@ describe('Account activities', () => {
})

it('Can remove an address', () => {
Account.login(account.customer.customer.email, account.customer.password)
Account.createAddress(account.customerInfo)
cy.visit(account.routes.accountAddresses)
cy.wait(4000)
Expand All @@ -152,7 +147,6 @@ describe('Account activities', () => {
})

it('Can change the newsletter subscription', () => {
Account.login(account.customer.customer.email, account.customer.password)
cy.visit(account.routes.manageNewsletter)
cy.contains('General Subscription')
cy.get('#subscription').should('be.checked')
Expand Down