Skip to content

Commit

Permalink
NTR: move button out of form
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Oct 9, 2024
1 parent 3177f09 commit 0eaf0f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export default class MollieApplePayDirect extends Plugin {

if (applePayContainers) {
applePayContainers.forEach(function (container) {
container.remove();
container.style.display = 'none';
container.classList.add('d-none');
});
}
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

{% endblock %}

{% block buy_widget_buy_button_container %}
{% block buy_widget_buy_form_inner %}
{{ parent() }}
{% block page_product_detail_buy_container_apple_direct %}
{# this is for Shopware < 6.4 #}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ describe('Apple Pay Direct - UI Tests', () => {
topMenu.clickOnSecondCategory();
listing.clickOnFirstProduct();

repoPDP.getApplePayDirectButton().should('not.exist');
repoPDP.getApplePayDirectButton().should('not.have.class', 'd-none');
})

})
Expand All @@ -304,7 +304,7 @@ describe('Apple Pay Direct - UI Tests', () => {
cy.visit('/');
topMenu.clickOnSecondCategory();

repoListing.getApplePayDirectButton().should('not.exist');
repoListing.getApplePayDirectButton().should('not.have.class', 'd-none');
})
})

Expand Down Expand Up @@ -332,7 +332,7 @@ describe('Apple Pay Direct - UI Tests', () => {
listing.clickOnFirstProduct();
pdp.addToCart(1);

repoOffcanvas.getApplePayDirectButton().should('not.exist');
repoOffcanvas.getApplePayDirectButton().should('not.have.class', 'd-none');
})

})
Expand Down Expand Up @@ -364,7 +364,7 @@ describe('Apple Pay Direct - UI Tests', () => {

checkout.goToCartInOffCanvas();

repoCart.getApplePayDirectButton().should('not.exist');
repoCart.getApplePayDirectButton().should('not.have.class', 'd-none');
})

})
Expand Down

0 comments on commit 0eaf0f7

Please sign in to comment.