Refactor e2e test code and reduce test timeout

The end-to-end tests have been refactored for clarity and maintainability. This includes changes in how the 'Billing' link is accessed, addition of comments and small coding improvements. Moreover, the test timeout has been reduced from 2 minutes to 1 for efficiency. Changes were also applied to the text content in locales file and minor fixes in component styling.
This commit is contained in:
giancarlo
2024-04-14 19:34:40 +08:00
parent d8e44772f2
commit 131b06fae6
6 changed files with 12 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
import { Page } from '@playwright/test';
import { expect, Page } from '@playwright/test';
import { StripePageObject } from './stripe.po';
export class BillingPageObject {
@@ -29,6 +29,7 @@ export class BillingPageObject {
}
async returnToHome() {
// wait a bit for the webhook to be processed
await this.page.waitForTimeout(1000);
await this.successStatus().locator('button').click();