Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ describe('OrganizationAccordion', () => {
getByText(GetUsersOrganizationsAccountsMock[0].organization.name),
).toBeInTheDocument();

expect(getByText('Last Updated')).toBeInTheDocument();
// Offline orgs never download, so a "Last Updated" timestamp is
// meaningless for them and must not be shown; "Last Gift Date" is the
// honest signal and stays.
expect(queryByText('Last Updated')).not.toBeInTheDocument();

expect(getByText('Last Gift Date')).toBeInTheDocument();
});
Expand Down Expand Up @@ -237,6 +240,9 @@ describe('OrganizationAccordion', () => {
expect(
queryByText('Import TntConnect DataSync file'),
).not.toBeInTheDocument();

// Non-offline orgs really do download, so "Last Updated" stays.
expect(getByText('Last Updated')).toBeInTheDocument();
});

userEvent.click(getByText('Sync'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export const OrganizationAccordion: React.FC<AccordionProps> = ({
</Box>
</Box>
<Divider />
{lastDownloadedAt && (
{type !== OrganizationTypesEnum.OFFLINE && lastDownloadedAt && (
<Box sx={{ p: 2, display: 'flex' }}>
<Grid
container
Expand Down
Loading