salix-front/test/cypress/integration/item/itemSummary.spec.js

25 lines
886 B
JavaScript
Raw Normal View History

2024-12-03 12:00:16 +00:00
/// <reference types="cypress" />
describe('Item summary', () => {
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('developer');
2025-01-07 12:16:05 +00:00
cy.visit(`/#/item/1/summary`);
2024-12-03 12:00:16 +00:00
});
it('should clone the item', () => {
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();
cy.dataCy('VnConfirm_confirm').click();
2024-12-03 12:00:16 +00:00
cy.waitForElement('[data-cy="itemTags"]');
cy.dataCy('itemTags').should('be.visible');
2024-12-03 12:00:16 +00:00
});
it('should regularize stock', () => {
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();
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');
});
});