Skip to content

Commit

Permalink
fix(payment): Update test.
Browse files Browse the repository at this point in the history
  • Loading branch information
gtandersen committed Aug 12, 2024
1 parent 6be4fdb commit 5ba39b4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 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('.productGrid .purchaseButton').contains('Purchase').click();
cy.get('#pricePlans .purchaseButton').contains('Purchase').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('.productGrid .purchaseButton').contains('Add product').click();
cy.get('#pricePlans .purchaseButton').contains('Add product').click();
cy.get('#shoppingCartButton').should('be.visible');
cy.get('#shoppingCartButton .mat-badge-content').should('contain', '1');

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

cy.get('#shoppingCartButton').click();
Expand Down
19 changes: 15 additions & 4 deletions src/app/account-app/account-upgrades.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,25 @@ <h4>
Account: {{ me.first_name }} {{ me.last_name }} ({{ me.user_address }})
</h4>
<h3>
Welcome to our store -- we're happy to see you!
Welcome to our store!
</h3>
<img src="https://runbox.com/wp-content/uploads/cropped-sustainability-2-2400x632.png" id="NorwayGraphic" />
<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>
Here you may subscribe to Runbox, change your existing subscription, or add more accounts or email domains. To set up additional accounts under your main account, please see <a href = "#subaccounts">Sub-Accounts</a> further down.
<button mat-raised-button routerLink="/account/#recommended" color="primary" class="plansLink">
Recommended plans
</button>
<button mat-raised-button routerLink="/account/#plans" color="primary" class="plansLink">
Compare price plans
</button>
<button mat-raised-button routerLink="/account/#subaccounts" color="primary" class="plansLink">
Additional accounts
</button>

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 Expand Up @@ -57,7 +68,7 @@ <h1 style="margin: 10px 0 20px 0">One extra year for free!</h1>
</div>
-->

<h3>Our recommended plans</h3>
<a name="recommended"><h3>Our recommended plans</h3></a>

<p>
We offer a 20% discount on all our plans if you renew for 3 years, which locks in the current price for your entire selected subcription period. To review and compare all our plans, please see the table further down.
Expand Down Expand Up @@ -288,7 +299,7 @@ <h4 *ngFor="let us of addon_usages">

<br /><br />

<h3>All our price plans</h3>
<a name="recommended"><h3>All our price plans</h3></a>

<p>
Compare all our main account plans for 1 and 3 years in the table below.
Expand Down
4 changes: 4 additions & 0 deletions src/app/account-app/account-upgrades.component.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.plansLink {
margin-right: 10px;
}

#NorwayGraphic {
float: right;
width: 300px;
Expand Down

0 comments on commit 5ba39b4

Please sign in to comment.