2024-12-03 12:00:16 +00:00
|
|
|
/// <reference types="cypress" />
|
|
|
|
describe('Item summary', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
cy.viewport(1920, 1080);
|
|
|
|
cy.login('developer');
|
|
|
|
cy.visit(`/#/item/list`);
|
2024-12-16 09:24:31 +00:00
|
|
|
cy.typeSearchbar('1{enter}');
|
2024-12-03 12:00:16 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it('should clone the item', () => {
|
2024-12-10 06:03:13 +00:00
|
|
|
cy.dataCy('descriptor-more-opts').click();
|
2024-12-03 12:00:16 +00:00
|
|
|
cy.get('.q-menu > .q-list > :nth-child(2) > .q-item__section').click();
|
2024-12-10 06:03:13 +00:00
|
|
|
cy.dataCy('VnConfirm_confirm').click();
|
2024-12-03 12:00:16 +00:00
|
|
|
cy.waitForElement('[data-cy="itemTags"]');
|
2024-12-10 06:03:13 +00:00
|
|
|
cy.dataCy('itemTags').should('be.visible');
|
2024-12-03 12:00:16 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it('should regularize stock', () => {
|
2024-12-10 06:03:13 +00:00
|
|
|
cy.dataCy('descriptor-more-opts').click();
|
2024-12-03 12:00:16 +00:00
|
|
|
cy.get('.q-menu > .q-list > :nth-child(1) > .q-item__section').click();
|
2024-12-10 06:03:13 +00:00
|
|
|
cy.dataCy('regularizeStockInput').type('10');
|
|
|
|
cy.dataCy('Warehouse_select').type('Warehouse One{enter}');
|
2024-12-03 12:00:16 +00:00
|
|
|
cy.checkNotification('Data created');
|
|
|
|
});
|
|
|
|
});
|