Skip to content

Commit

Permalink
tests: Fix e2e breakages after latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Apr 29, 2024
1 parent 27f5f15 commit b02e3d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/pages/web-pages/donation/donation.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class DonationPage extends CampaignsPage {
* @param {number} amount
*/
async hasPaymentErrorMessage(): Promise<boolean> {
const errorAlert = await this.page.locator('.MuiAlert-message', {
const errorAlert = await this.page.locator('strong.MuiTypography-root', {
hasText: this.bgStripeErrorNoBalanceText,
})
await this.waitForElementToBePresentedByLocator(errorAlert)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export function DonationFormErrorList({ errors, show, paymentError }: DonationFo
<Typography
variant="subtitle2"
color={'error.main'}
component={'strong'}
fontWeight={500}
fontSize={theme.typography.pxToRem(14)}
sx={{ textDecoration: 'underline', cursor: 'pointer' }}>
Expand Down Expand Up @@ -89,6 +90,7 @@ export function DonationFormErrorList({ errors, show, paymentError }: DonationFo
variant="subtitle2"
color={'error.main'}
fontWeight={500}
component={'strong'}
fontSize={theme.typography.pxToRem(14)}
sx={{ textDecoration: 'underline', cursor: 'pointer' }}>
{paymentError.message}
Expand Down

0 comments on commit b02e3d4

Please sign in to comment.