diff --git a/test/cypress/integration/item/01_summary.spec.js b/test/cypress/integration/item/01_summary.spec.js new file mode 100644 index 000000000..c44f4d047 --- /dev/null +++ b/test/cypress/integration/item/01_summary.spec.js @@ -0,0 +1,25 @@ +describe.skip('Item summary path', () => { + beforeEach(() => { + const itemId = 1; + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit(`/#/item/${itemId}`); + }); + it('should search for an item', async () => {}); + it(`should check the item summary preview shows fields from basic data`, async () => {}); + it(`should check the item summary preview shows fields from tags`, async () => {}); + it(`should check the item summary preview shows fields from botanical`, async () => {}); + it(`should check the item summary preview shows fields from barcode`, async () => {}); + it(`should close the summary popup`, async () => {}); + it('should search for other item', async () => {}); + it(`should now check the item summary preview shows fields from basic data`, async () => {}); + it(`should now check the item summary preview shows fields from tags`, async () => {}); + it(`should now check the item summary preview shows fields from botanical`, async () => {}); + it(`should now close the summary popup`, async () => {}); + it(`should navigate to one of the items detailed section`, async () => {}); + it(`should check the descritor edit button is not visible for employee`, async () => {}); + it(`should check the item summary shows fields from basic data section`, async () => {}); + it(`should check the item summary shows fields from tags section`, async () => {}); + it(`should check the item summary shows fields from botanical section`, async () => {}); + it(`should check the item summary shows fields from barcodes section`, async () => {}); +}); diff --git a/test/cypress/integration/item/02_basic_data.spec.js b/test/cypress/integration/item/02_basic_data.spec.js new file mode 100644 index 000000000..ada9ef57c --- /dev/null +++ b/test/cypress/integration/item/02_basic_data.spec.js @@ -0,0 +1,10 @@ +describe.skip('Item Edit basic data path', () => { + beforeEach(() => { + const itemId = 1; + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit(`/#/item/${itemId}`); + }); + it(`should edit the item basic data and confirm the item data was edited`, async () => {}); + it(`should create a new intrastat and save it`, async () => {}); +}); diff --git a/test/cypress/integration/item/03_tax.spec.js b/test/cypress/integration/item/03_tax.spec.js new file mode 100644 index 000000000..593dbfb36 --- /dev/null +++ b/test/cypress/integration/item/03_tax.spec.js @@ -0,0 +1,12 @@ +describe.skip('Item edit tax path', () => { + beforeEach(() => { + const itemId = 1; + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit(`/#/item/${itemId}`); + }); + it(`should add the item tax to all countries`, async () => {}); + it(`should confirm the first item tax class was edited`, async () => {}); + it(`should confirm the second item tax class was edited`, async () => {}); + it(`should edit the first class without saving the form`, async () => {}); +}); diff --git a/test/cypress/integration/item/04_tags.spec.js b/test/cypress/integration/item/04_tags.spec.js new file mode 100644 index 000000000..720d19a89 --- /dev/null +++ b/test/cypress/integration/item/04_tags.spec.js @@ -0,0 +1,12 @@ +describe.skip('Item create tags path', () => { + beforeEach(() => { + const itemId = 1; + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit(`/#/item/${itemId}`); + }); + it('should create a new tag and delete a former one', async () => {}); + it('should confirm the fourth row data is the expected one', async () => {}); + it('should confirm the fifth row data is the expected one', async () => {}); + it('should confirm the sixth row data is the expected one', async () => {}); +}); diff --git a/test/cypress/integration/item/05_botanical.spec.js b/test/cypress/integration/item/05_botanical.spec.js new file mode 100644 index 000000000..72e7f3fee --- /dev/null +++ b/test/cypress/integration/item/05_botanical.spec.js @@ -0,0 +1,14 @@ +describe.skip('Item Create botanical path', () => { + beforeEach(() => { + const itemId = 1; + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit(`/#/item/${itemId}`); + }); + it(`should create a new botanical for the item`, async () => {}); + it(`should confirm the Genus for the item was created`, async () => {}); + it(`should confirm the Species for the item was created`, async () => {}); + it(`should edit botanical for the item`, async () => {}); + it(`should confirm the Genus for the item was edited`, async () => {}); + it(`should confirm the Species for the item was edited`, async () => {}); +}); diff --git a/test/cypress/integration/item/06_barcode.spec.js b/test/cypress/integration/item/06_barcode.spec.js new file mode 100644 index 000000000..cea3c13f2 --- /dev/null +++ b/test/cypress/integration/item/06_barcode.spec.js @@ -0,0 +1,10 @@ +describe.skip('Item Create barcodes path', () => { + beforeEach(() => { + const itemId = 1; + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit(`/#/item/${itemId}`); + }); + it(`should click create a new code and delete a former one`, async () => {}); + it(`should confirm the barcode 5 is created and it is now the third barcode as the first was deleted`, async () => {}); +}); diff --git a/test/cypress/integration/item/07_create.spec.js b/test/cypress/integration/item/07_create.spec.js new file mode 100644 index 000000000..7555d6927 --- /dev/null +++ b/test/cypress/integration/item/07_create.spec.js @@ -0,0 +1,13 @@ +describe.skip('Item Create', () => { + beforeEach(() => { + const itemId = 1; + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit(`/#/item/${itemId}`); + }); + it('should access to the create item view by clicking the create floating button', async () => {}); + it('should return to the item index by clickig the cancel button', async () => {}); + it('should now access to the create item view by clicking the create floating button', async () => {}); + it('should throw an error when insert an invalid priority', async () => {}); + it('should create the Infinity Gauntlet item', async () => {}); +}); diff --git a/test/cypress/integration/item/08_regularize.spec.js b/test/cypress/integration/item/08_regularize.spec.js new file mode 100644 index 000000000..74d12846f --- /dev/null +++ b/test/cypress/integration/item/08_regularize.spec.js @@ -0,0 +1,24 @@ +describe.skip('Item regularize path', () => { + beforeEach(() => { + const itemId = 1; + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit(`/#/item/${itemId}`); + }); + it('should edit the user local warehouse', async () => {}); + it('should check the local settings were saved', async () => {}); + it('should search for a specific item', async () => {}); + it('should open the regularize dialog and check the warehouse matches the local user settings', async () => {}); + it('should regularize the item', async () => {}); + it('should click on the Tickets button of the top bar menu', async () => {}); + it('should clear the user local settings now', async () => {}); + it('should search for the ticket with alias missing', async () => {}); + it(`should check the ticket sale quantity is showing a negative value`, async () => {}); + it(`should check the ticket sale discount is 100%`, async () => {}); + it('should now click on the Items button of the top bar menu', async () => {}); + it('should search for the item once again', async () => {}); + it('should regularize the item once more', async () => {}); + it('should again click on the Tickets button of the top bar menu', async () => {}); + it('should search for the ticket missing once again', async () => {}); + it(`should check the ticket contains now two sales`, async () => {}); +}); diff --git a/test/cypress/integration/item/09_index.spec.js b/test/cypress/integration/item/09_index.spec.js new file mode 100644 index 000000000..5648a8b5f --- /dev/null +++ b/test/cypress/integration/item/09_index.spec.js @@ -0,0 +1,14 @@ +describe.skip('Item index path', () => { + beforeEach(() => { + const itemId = 1; + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit(`/#/item/${itemId}`); + }); + it('should click on the fields to show button to open the list of columns to show', async () => {}); + it('should unmark all checkboxes except the first and the last ones', async () => {}); + it('should navigate forth and back to see the images column is still visible', async () => {}); + it('should check the ids column is not visible', async () => {}); + it('should mark all unchecked boxes to leave the index as it was', async () => {}); + it('should now navigate forth and back to see the ids column is now visible', async () => {}); +}); diff --git a/test/cypress/integration/item/10_item_log.spec.js b/test/cypress/integration/item/10_item_log.spec.js new file mode 100644 index 000000000..3cc64dbbb --- /dev/null +++ b/test/cypress/integration/item/10_item_log.spec.js @@ -0,0 +1,12 @@ +describe.skip('Item log path', () => { + beforeEach(() => { + const itemId = 1; + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit(`/#/item/${itemId}`); + }); + it(`should search for the Knowledge artifact to confirm it isn't created yet`, async () => {}); + it('should access to the create item view by clicking the create floating button', async () => {}); + it('should create the Knowledge artifact item', async () => {}); + it('should return to the items index by clicking the return to items button', async () => {}); +}); diff --git a/test/cypress/integration/item/11_descriptor.spec.js b/test/cypress/integration/item/11_descriptor.spec.js new file mode 100644 index 000000000..6ea89c365 --- /dev/null +++ b/test/cypress/integration/item/11_descriptor.spec.js @@ -0,0 +1,11 @@ +describe.skip('Item descriptor path', () => { + beforeEach(() => { + const itemId = 1; + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit(`/#/item/${itemId}`); + }); + it('should set the item to inactive', async () => {}); + it('should reload the section and check the inactive icon is visible', async () => {}); + it('should set the item back to active', async () => {}); +}); diff --git a/test/cypress/integration/item/12_request.spec.js b/test/cypress/integration/item/12_request.spec.js new file mode 100644 index 000000000..f4e26f421 --- /dev/null +++ b/test/cypress/integration/item/12_request.spec.js @@ -0,0 +1,12 @@ +describe.skip('Item request path', () => { + beforeEach(() => { + const itemId = 1; + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit(`/#/item/${itemId}`); + }); + it('should reach the item request section', async () => {}); + it('should fill the id and quantity then check the concept was updated', async () => {}); + it('should check the status of the request should now be accepted', async () => {}); + it('should now click on the second declain request icon then type the reason', async () => {}); +}); diff --git a/test/cypress/integration/item/13_fixedPrice.spec.js b/test/cypress/integration/item/13_fixedPrice.spec.js new file mode 100644 index 000000000..44fdfde46 --- /dev/null +++ b/test/cypress/integration/item/13_fixedPrice.spec.js @@ -0,0 +1,12 @@ +describe.skip('Item fixed prices path', () => { + beforeEach(() => { + const itemId = 1; + cy.viewport(1280, 720); + cy.login('developer'); + cy.visit(`/#/item/${itemId}`); + }); + it('should filter using all the fields', async () => {}); + it('should click on the add new fixed price button', async () => {}); + it('should fill the fixed price data', async () => {}); + it('should reload the section and check the created price has the expected ID', async () => {}); +});