Skip to content

Commit

Permalink
test(payment): Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
gtandersen committed Aug 13, 2024
1 parent 5ba39b4 commit ed0b0aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions e2e/cypress/integration/ordering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('Ordering products', () => {
cy.visit('/account/plans');

cy.wait('@availableProducts', {'timeout':10000});
cy.get('#pricePlans .purchaseButton').contains('Purchase').click();
cy.get('#pricePlans .purchaseButton').contains('Select').click();
cy.get('#shoppingCartButton').should('be.visible');

cy.get('#shoppingCartButton').click();
Expand All @@ -26,11 +26,11 @@ describe('Ordering products', () => {

cy.get('#shoppingCartButton').should('not.exist');

cy.get('#pricePlans .purchaseButton').contains('Add product').click();
cy.get('.productGrid .purchaseButton').contains('Add product').click();
cy.get('#shoppingCartButton').should('be.visible');
cy.get('#shoppingCartButton .mat-badge-content').should('contain', '1');

cy.get('#pricePlans .purchaseButton').contains('Add product').click();
cy.get('.productGrid .purchaseButton').contains('Add product').click();
cy.get('#shoppingCartButton .mat-badge-content').should('contain', '1');

cy.get('#shoppingCartButton').click();
Expand Down
6 changes: 3 additions & 3 deletions src/app/account-app/account-upgrades.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h3>
<p>
By subscribing to Runbox you support an independent and sustainable business in Norway, where your email will stay secure and private indefinitely.
</p>
<p>
<div>
<button mat-raised-button routerLink="/account/#recommended" color="primary" class="plansLink">
Recommended plans
</button>
Expand All @@ -30,9 +30,9 @@ <h3>
<button mat-raised-button routerLink="/account/#subaccounts" color="primary" class="plansLink">
Additional accounts
</button>

</div>
<p>
To view your existing subscvriptions, please go to <a routerLink="/account/subscriptions">Your Subscriptions</a>.

</p>
<p>
Feel free to contact us via <a href="https://support.runbox.com" target="support">Runbox Support</a> if you have any questions about our plans.
Expand Down

0 comments on commit ed0b0aa

Please sign in to comment.