Skip to content

Commit

Permalink
NTR: add reset stocks to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Jun 17, 2024
1 parent 49b6606 commit a3559e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ context("Cancel Authorized items", () => {

orderDetailsRepository.getLineItemActionsButtonCancelThroughMollie().should('not.have.class', 'is--disabled');
orderDetailsRepository.getLineItemActionsButtonCancelThroughMollie().click({force: true});
cancelItemRepository.getQuantityInput().type(2);
cancelItemRepository.getQuantityInput().clear().type(2);
cancelItemRepository.getResetStockToggle().click({force:true});
cancelItemRepository.getItemLabel().should('not.be.empty');
cancelItemRepository.getConfirmButton().click({force: true});
orderDetailsRepository.getLineItemCancelled().should('contain.text', 2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class CancelItemRepository {
* @returns {Cypress.Chainable<JQuery<HTMLElement>>}
*/
getResetStockToggle(){
return cy.get('.cy-cancel-item-stock .sw-field')
return cy.get('.cy-cancel-item-stock input')
}

/**
Expand Down

0 comments on commit a3559e6

Please sign in to comment.