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:
@@ -26,7 +26,7 @@ test.describe('Team Billing', () => {
|
||||
|
||||
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();
|
||||
});
|
||||
});
|
||||
@@ -26,7 +26,7 @@ test.describe('User Billing', () => {
|
||||
hasText: 'Billing',
|
||||
}).click();
|
||||
|
||||
await expect(await po.billing.getStatus()).toContainText('active');
|
||||
await expect(await po.billing.getStatus()).toContainText('Active');
|
||||
await expect(po.billing.manageBillingButton()).toBeVisible();
|
||||
});
|
||||
});
|
||||
@@ -29,7 +29,8 @@ export class BillingPageObject {
|
||||
}
|
||||
|
||||
async returnToHome() {
|
||||
await this.page.waitForTimeout(500);
|
||||
await this.page.waitForTimeout(1000);
|
||||
|
||||
await this.successStatus().locator('button').click();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user