Update user billing flow and improve error handling

Updated the user billing process to add a return to home function and redirect users to their specific account page after payment. Enhanced error handling in the billing event handler to handle scenarios where no account id is found in the subscription. Removed unused billing page object from the stripe page object.
This commit is contained in:
giancarlo
2024-04-14 18:25:33 +08:00
parent 0824ac8e9f
commit 7dcd688ca9
6 changed files with 29 additions and 7 deletions

View File

@@ -29,6 +29,7 @@ export class BillingPageObject {
}
async returnToHome() {
await this.page.waitForTimeout(500);
await this.successStatus().locator('button').click();
}