diff --git a/src/apps/work/src/lib/components/SubmissionsTable/SubmissionsTable.module.scss b/src/apps/work/src/lib/components/SubmissionsTable/SubmissionsTable.module.scss index b0e8634cf..bd8bb596f 100644 --- a/src/apps/work/src/lib/components/SubmissionsTable/SubmissionsTable.module.scss +++ b/src/apps/work/src/lib/components/SubmissionsTable/SubmissionsTable.module.scss @@ -150,6 +150,10 @@ color: #ea1900; } +.testStatusCancelled { + color: #767676; +} + .level-1 { color: #555 !important; } diff --git a/src/apps/work/src/lib/components/SubmissionsTable/SubmissionsTable.spec.tsx b/src/apps/work/src/lib/components/SubmissionsTable/SubmissionsTable.spec.tsx index ce0827d80..7327b0179 100644 --- a/src/apps/work/src/lib/components/SubmissionsTable/SubmissionsTable.spec.tsx +++ b/src/apps/work/src/lib/components/SubmissionsTable/SubmissionsTable.spec.tsx @@ -5,6 +5,7 @@ import { SubmissionsTable } from './SubmissionsTable' jest.mock('~/libs/ui', () => ({ IconOutline: { + BanIcon: (): JSX.Element => , ClockIcon: (): JSX.Element => , XCircleIcon: (): JSX.Element => , }, @@ -55,7 +56,7 @@ jest.mock('../../utils', () => ({ metadata?: { testProcess?: 'example' | 'provisional' | 'system' testProgress?: number - testStatus?: 'FAILED' | 'IN PROGRESS' | 'SUCCESS' + testStatus?: 'CANCELLED' | 'FAILED' | 'IN PROGRESS' | 'SUCCESS' testType?: 'example' | 'provisional' | 'system' } }> @@ -337,6 +338,45 @@ describe('SubmissionsTable', () => { .toBeTruthy() }) + it('renders a cancelled test status without a score for a superseded marathon run', () => { + render( + , + ) + + expect(screen.getByRole('img', { name: 'Test status: CANCELLED' })) + .toBeTruthy() + expect(screen.queryByText('-1.00')) + .toBeNull() + }) + it('renders marathon scores from provisional and system summations only', () => { render( +