-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allowing group data download button to apply to selected rows
- Loading branch information
1 parent
54b25e3
commit 707adfc
Showing
4 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -713,11 +713,16 @@ describe('<BudgetDetailPage />', () => { | |
renderWithRouter(<BudgetDetailPageWrapper initialState={initialState} />); | ||
userEvent.type(screen.getByText('Search by member details'), 'foobar'); | ||
userEvent.click(screen.getByTestId('members-table-enrollments-column-header')); | ||
|
||
const removeToggle = screen.getByTestId('show-removed-toggle'); | ||
userEvent.click(removeToggle); | ||
|
||
const downloadButton = screen.getByText('Download all (1)'); | ||
const toggleAllRowsSelected = screen.getByTitle('Toggle All Current Page Rows Selected'); | ||
userEvent.click(toggleAllRowsSelected); | ||
|
||
const downloadButton = screen.getByText('Download (1)'); | ||
expect(downloadButton).toBeInTheDocument(); | ||
|
||
userEvent.click(downloadButton); | ||
expect(EnterpriseAccessApiService.fetchSubsidyHydratedGroupMembersData).toHaveBeenCalledWith( | ||
mockAssignableSubsidyAccessPolicy.uuid, | ||
|
@@ -730,6 +735,7 @@ describe('<BudgetDetailPage />', () => { | |
show_removed: true, | ||
is_reversed: true, | ||
}, | ||
['[email protected]'], | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters