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:
@@ -29,6 +29,7 @@ export class BillingPageObject {
|
||||
}
|
||||
|
||||
async returnToHome() {
|
||||
await this.page.waitForTimeout(500);
|
||||
await this.successStatus().locator('button').click();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user