Skip to content

Commit

Permalink
fix: add data-cy to RowActionsMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
kewitz committed Dec 9, 2024
1 parent 9832b96 commit 13ce620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/table/RowActionsMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export function RowActionsMenu<TData>({ row, actionsMenuTriggerRef, table }: Row
size="icon-xs"
variant="outline"
className="border-transparent text-muted-foreground hover:bg-white hover:text-foreground hover:shadow-sm group-hover/row:border-border data-[state=open]:border-border data-[state=open]:text-foreground"
data-cy="actions-menu-trigger"
>
<MoreHorizontal size={18} />
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ describe('Recurring contributions', () => {
it('Can cancel an active contribution with reasons displayed in modal, "other" displays text area', () => {
cy.mailpitDeleteAllEmails();
cy.login({ email: user.email, redirect: `/dashboard/${user.collective.slug}/outgoing-contributions` }).then(() => {
cy.get('tbody tr td button').first().click();
cy.getByDataCy('actions-menu-trigger').first().click();
cy.getByDataCy('recurring-contribution-menu-cancel-option').click();
cy.getByDataCy('cancel-order-modal').should('exist');
cy.getByDataCy('cancel-order-modal').contains('Why are you cancelling your subscription today? 🥺');
Expand Down

0 comments on commit 13ce620

Please sign in to comment.