test: refs #7283 #7356 first import missing salix e2e tests
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-12-01 20:52:42 +01:00
parent 6c60d5c7a0
commit d5871f3f7d
13 changed files with 181 additions and 0 deletions

View File

@ -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 () => {});
});

View File

@ -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 () => {});
});

View File

@ -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 () => {});
});

View File

@ -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 () => {});
});

View File

@ -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 () => {});
});

View File

@ -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 () => {});
});

View File

@ -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 () => {});
});

View File

@ -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 () => {});
});

View File

@ -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 () => {});
});

View File

@ -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 () => {});
});

View File

@ -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 () => {});
});

View File

@ -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 () => {});
});

View File

@ -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 () => {});
});