-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding error badges to members tab (#1261)
* feat: adding error badges to members tab * fix: test fix
- Loading branch information
Showing
2 changed files
with
73 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -812,7 +812,7 @@ describe('<BudgetDetailPage />', () => { | |
useEnterpriseGroupMembersTableData.mockReturnValue({ | ||
isLoading: false, | ||
enterpriseGroupMembersTableData: { | ||
itemCount: 3, | ||
itemCount: 5, | ||
pageCount: 1, | ||
results: [{ | ||
memberDetails: { userEmail: '[email protected]', userName: 'duke silver' }, | ||
|
@@ -829,6 +829,16 @@ describe('<BudgetDetailPage />', () => { | |
status: 'accepted', | ||
recentAction: 'Accepted: April 02, 2024', | ||
enrollmentCount: 0, | ||
}, { | ||
memberDetails: { userEmail: '[email protected]', userName: 'andy dwyer' }, | ||
status: 'internal_api_error', | ||
recentAction: 'Errored: April 01, 2024', | ||
enrollmentCount: 0, | ||
}, { | ||
memberDetails: { userEmail: '[email protected]', userName: 'donna meagle' }, | ||
status: 'email_error', | ||
recentAction: 'Errored: April 01, 2024', | ||
enrollmentCount: 0, | ||
}], | ||
}, | ||
fetchEnterpriseGroupMembersTableData: jest.fn(), | ||
|
@@ -852,6 +862,13 @@ describe('<BudgetDetailPage />', () => { | |
await waitFor(() => expect(screen.queryByText('Member removed')).toBeInTheDocument()); | ||
screen.getByText('This member has been successfully removed and can not browse this budget\'s ' | ||
+ 'catalog and enroll using their member permissions.'); | ||
|
||
userEvent.click(screen.getByText('Failed: System')); | ||
await waitFor(() => expect(screen.queryByText('Something went wrong behind the scenes.')).toBeInTheDocument()); | ||
|
||
userEvent.click(screen.getByText('Failed: Bad email')); | ||
await waitFor(() => expect(screen.queryByText('This member invitation failed because a notification to [email protected] ' | ||
+ 'could not be sent.')).toBeInTheDocument()); | ||
}); | ||
it('download learner flow for multiple selected pages of users', async () => { | ||
// Setup | ||
|