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

22 lines
691 B
JavaScript

/// <reference types="cypress" />
describe('Item summary', { testIsolation: true }, () => {
beforeEach(() => {
cy.login('developer');
cy.visit(`/#/item/1/summary`);
});
it('should clone the item', () => {
cy.selectDescriptorOption(2);
cy.dataCy('VnConfirm_confirm').click();
cy.waitForElement('[data-cy="itemTags"]');
cy.dataCy('itemTags').should('be.visible');
});
it('should regularize stock', () => {
cy.selectDescriptorOption();
cy.dataCy('regularizeStockInput').type('10');
cy.dataCy('Warehouse_select').type('Warehouse One{enter}');
cy.checkNotification('Data created');
});
});