Skip to content

Commit

Permalink
fix(e2e): add missing data-test attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlago99 committed Jan 26, 2025
1 parent 70e7927 commit e372da8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/customers/overview/CustomerCoupons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export const CustomerCoupons = memo(() => {
data={coupons || []}
containerSize={4}
isLoading={loading}
rowDataTestId={(coupon) => coupon.coupon?.name}
columns={[
{
key: 'coupon.name',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ export const CustomerSubscriptionsList = ({ customerTimezone }: CustomerSubscrip
hasPermissions(['subscriptionsCreate'])
? {
title: translate('text_6250304370f0f700a8fdc28b'),
dataTest: 'add-subscription',
onClick: () => {
navigate(
generatePath(CREATE_SUBSCRIPTION, {
Expand All @@ -290,6 +291,7 @@ export const CustomerSubscriptionsList = ({ customerTimezone }: CustomerSubscrip
data={annotatedSubscriptions || []}
containerSize={4}
isLoading={loading}
rowDataTestId={(subscription) => subscription.name || `subscription-${subscription.id}`}
onRowActionLink={({ id }) =>
generatePath(CUSTOMER_SUBSCRIPTION_DETAILS_ROUTE, {
customerId: customerId as string,
Expand Down

0 comments on commit e372da8

Please sign in to comment.