Update billing status wording and increase wait timeout

The commit changes the expected text for billing status in both 'user-billing.spec.ts' and 'team-billing.spec.ts' from 'active' to 'Active'. In addition, the waiting time for the page to return to home in 'billing.po.ts' has been increased from 500ms to 1000ms to improve testing reliability.
This commit is contained in:
giancarlo
2024-04-14 18:56:31 +08:00
parent a549d2d08f
commit 736e377462
3 changed files with 4 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ test.describe('Team Billing', () => {
await po.teamAccounts.goToBilling(); await po.teamAccounts.goToBilling();
await expect(await po.billing.getStatus()).toContainText('active'); await expect(await po.billing.getStatus()).toContainText('Active');
await expect(po.billing.manageBillingButton()).toBeVisible(); await expect(po.billing.manageBillingButton()).toBeVisible();
}); });
}); });

View File

@@ -26,7 +26,7 @@ test.describe('User Billing', () => {
hasText: 'Billing', hasText: 'Billing',
}).click(); }).click();
await expect(await po.billing.getStatus()).toContainText('active'); await expect(await po.billing.getStatus()).toContainText('Active');
await expect(po.billing.manageBillingButton()).toBeVisible(); await expect(po.billing.manageBillingButton()).toBeVisible();
}); });
}); });

View File

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