Adjust locator in billing test and add data-test attribute
Updated the locator for the 'manageBillingButton' in the end-to-end billing test. Instead of an id, the locator now targets a data property. This change was also reflected in the Button component within 'billing-portal-card.tsx' where the attribute data-test was added for test recognition.
This commit is contained in:
@@ -21,7 +21,7 @@ export class BillingPageObject {
|
||||
}
|
||||
|
||||
manageBillingButton() {
|
||||
return this.page.locator('manage-billing-redirect-button');
|
||||
return this.page.locator('[data-test="manage-billing-redirect-button"]');
|
||||
}
|
||||
|
||||
successStatus() {
|
||||
|
||||
@@ -27,7 +27,7 @@ export function BillingPortalCard() {
|
||||
|
||||
<CardContent className={'space-y-2'}>
|
||||
<div>
|
||||
<Button>
|
||||
<Button data-test={'manage-billing-redirect-button'}>
|
||||
<span>
|
||||
<Trans i18nKey="billing:billingPortalCardButton" />
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user