26 lines
1.0 KiB
JavaScript
26 lines
1.0 KiB
JavaScript
/// <reference types="cypress" />
|
|
describe('Item summary', () => {
|
|
beforeEach(() => {
|
|
cy.viewport(1920, 1080);
|
|
cy.login('developer');
|
|
cy.visit(`/#/item/list`);
|
|
cy.get('#searchbar input').type('1{enter}');
|
|
});
|
|
|
|
it('should clone the item', () => {
|
|
cy.get('[data-cy="descriptor-more-opts"] > .q-btn__content').click();
|
|
cy.get('.q-menu > .q-list > :nth-child(2) > .q-item__section').click();
|
|
cy.get('[data-cy="VnConfirm_confirm"]').click();
|
|
cy.waitForElement('[data-cy="itemTags"]');
|
|
cy.get('[data-cy="itemTags"]').should('be.visible');
|
|
});
|
|
|
|
it('should regularize stock', () => {
|
|
cy.get('[data-cy="descriptor-more-opts"] > .q-btn__content').click();
|
|
cy.get('.q-menu > .q-list > :nth-child(1) > .q-item__section').click();
|
|
cy.get('[data-cy="regularizeStockInput"]').type('10');
|
|
cy.get('[data-cy="Warehouse_select"]').type('Warehouse One{enter}');
|
|
cy.checkNotification('Data created');
|
|
});
|
|
});
|