Skip to content

Commit

Permalink
NTR: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Apr 23, 2024
1 parent 23341f7 commit 4b0471e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@
<sw-container columns="1fr" justify="start" gap="16px">
<sw-text-field v-model:value="tracking.carrier" v-model="tracking.carrier"
:label="$tc('mollie-payments.modals.shipping.tracking.carrier')"
class="cy-trackiing-carrier"
size="medium"
required/>
<sw-text-field v-model:value="tracking.code" v-model="tracking.code"
:label="$tc('mollie-payments.modals.shipping.tracking.code')"
size="medium"
class="cy-tracking-code"
required/>
<sw-text-field v-model:value="tracking.url" v-model="tracking.url"
size="medium"
class="cy-tracking-url"
:label="$tc('mollie-payments.modals.shipping.tracking.url')"/>
</sw-container>
</sw-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ SHOPWARE 6.4
:max="shippableQuantity(item)"
v-model:value="shipQuantity"
v-model="shipQuantity"
class="cy-ship-quantity"
>
<template #prefix>
{{ $tc('mollie-payments.modals.shipping.item.summary.quantity') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default class RefundManagerRepository {
* @returns {Cypress.Chainable<JQuery<HTMLElement>>}
*/
getFirstLineItemQuantityInput() {
return cy.get('.sw-data-grid__cell--inputQuantity #sw-field--item-refundQuantity').first();
return cy.get('.cy-input-quantity input').first();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,23 @@ export default class FullShippingRepository {
* @returns {Cypress.Chainable<JQuery<HTMLElement>>}
*/
getTrackingCarrier() {
return cy.get('#sw-field--tracking-carrier');
return cy.get('.cy-trackiing-carrier input');
}

/**
*
* @returns {Cypress.Chainable<JQuery<HTMLElement>>}
*/
getTrackingCode() {
return cy.get('#sw-field--tracking-code');
return cy.get('.cy-tracking-code input');
}

/**
*
* @returns {Cypress.Chainable<JQuery<HTMLElement>>}
*/
getTrackingUrl() {
return cy.get('#sw-field--tracking-url');
return cy.get('.cy-tracking-url input');
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class LineItemShippingRepository {
* @returns {Cypress.Chainable<JQuery<HTMLElement>>}
*/
getInputQuantity() {
return cy.get('#sw-field--shipQuantity');
return cy.get('.cy-ship-quantity input');
}

/**
Expand Down

0 comments on commit 4b0471e

Please sign in to comment.