forked from verdnatura/hedera-web
Adjustments
This commit is contained in:
parent
0bec75b2d3
commit
eea2ad7984
|
@ -1,4 +1,8 @@
|
||||||
describe('User flow: Login, create a new order, add item to basket and go to confirm view', () => {
|
describe('User flow: Login, create a new order, add item to basket and go to confirm view', () => {
|
||||||
|
before(() => {
|
||||||
|
cy.resetDB();
|
||||||
|
});
|
||||||
|
|
||||||
it('success', () => {
|
it('success', () => {
|
||||||
// 1- Loguear como empleado
|
// 1- Loguear como empleado
|
||||||
cy.login('employee');
|
cy.login('employee');
|
||||||
|
@ -17,6 +21,5 @@ describe('User flow: Login, create a new order, add item to basket and go to con
|
||||||
cy.dataCy('basketToConfirmBtn').should('exist');
|
cy.dataCy('basketToConfirmBtn').should('exist');
|
||||||
cy.dataCy('basketToConfirmBtn').click();
|
cy.dataCy('basketToConfirmBtn').click();
|
||||||
cy.url().should('contain', '/#/ecomerce/confirm');
|
cy.url().should('contain', '/#/ecomerce/confirm');
|
||||||
cy.resetDB();
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
describe('UsersView', () => {
|
describe('UsersView', () => {
|
||||||
|
before(() => {
|
||||||
|
cy.resetDB();
|
||||||
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.login('adminboss');
|
cy.login('adminboss');
|
||||||
cy.visit('/#/admin/users');
|
cy.visit('/#/admin/users');
|
||||||
|
@ -23,6 +27,5 @@ describe('UsersView', () => {
|
||||||
'contain',
|
'contain',
|
||||||
'New test nickname'
|
'New test nickname'
|
||||||
);
|
);
|
||||||
cy.resetDB();
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,17 +1,11 @@
|
||||||
describe('CatalogView', () => {
|
describe('CatalogView', () => {
|
||||||
// beforeEach(() => {
|
it('Adds item to basket and goes to basket', () => {
|
||||||
// // 1- Loguear usuario
|
cy.resetDB();
|
||||||
// cy.login('developer');
|
cy.login('developer');
|
||||||
// // 2- Crear una orden
|
cy.createOrderReceiveFlow();
|
||||||
// cy.resetDB();
|
cy.addItemToBasketFlow();
|
||||||
// cy.createOrderReceiveFlow();
|
cy.dataCy('catalogGoToBasketButton').should('exist');
|
||||||
// });
|
cy.dataCy('catalogGoToBasketButton').click();
|
||||||
// it('Adds item to basket', () => {
|
cy.url().should('contain', '/#/ecomerce/basket');
|
||||||
// cy.addItemToBasketFlow();
|
});
|
||||||
// });
|
|
||||||
// it('Goes to basket', () => {
|
|
||||||
// cy.dataCy('catalogGoToBasketButton').should('exist');
|
|
||||||
// cy.dataCy('catalogGoToBasketButton').click();
|
|
||||||
// cy.url().should('contain', '/#/ecomerce/basket');
|
|
||||||
// });
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue