Update UI, improve E2E tests and modify trial period configuration
The code changes incorporate UI updates for better usability and user experience. E2E test scripts(in `user-billing.spec.ts` and `team-billing.spec.ts`) were also updated for improved efficiency and accuracy, primarily replacing 'Active' status check with 'Trial'. Changes have been made in the trialDays configuration, with the term 'trialPeriod' now replaced by 'trialDays' across different components. Notably, a new error handling case is included in `lemon-squeezy-billing-strategy.service.ts` for failed subscription cancellation attempts.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { expect, Page } from '@playwright/test';
|
||||
import { Page } from '@playwright/test';
|
||||
import { StripePageObject } from './stripe.po';
|
||||
|
||||
export class BillingPageObject {
|
||||
@@ -32,7 +32,7 @@ export class BillingPageObject {
|
||||
// wait a bit for the webhook to be processed
|
||||
await this.page.waitForTimeout(1000);
|
||||
|
||||
return this.page.locator('[data-test="checkout-success-back-link"]').click();
|
||||
return this.page.locator('[data-test="checkout-success-back-link"] button').click();
|
||||
}
|
||||
|
||||
proceedToCheckout() {
|
||||
|
||||
Reference in New Issue
Block a user