Revert "Fix Status a11y concerns"

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
Ben Lambert
2023-07-11 17:22:59 +02:00
committed by blam
parent 8084bb0d31
commit 7feeb1acda
4 changed files with 70 additions and 98 deletions
@@ -24,19 +24,19 @@ describe('StatusIcon', () => {
let rendered = await renderInTestApp(
<StatusIcon buildStatus="succeeded" />,
);
expect(rendered.getByLabelText('Ok')).toBeInTheDocument();
expect(rendered.getByLabelText('Status ok')).toBeInTheDocument();
rendered = await renderInTestApp(<StatusIcon buildStatus="failed" />);
expect(rendered.getByLabelText('Error')).toBeInTheDocument();
expect(rendered.getByLabelText('Status error')).toBeInTheDocument();
rendered = await renderInTestApp(<StatusIcon buildStatus="stopped" />);
expect(rendered.getByLabelText('Warning')).toBeInTheDocument();
expect(rendered.getByLabelText('Status warning')).toBeInTheDocument();
});
it('should render invalid statuses', async () => {
const rendered = await renderInTestApp(
<StatusIcon buildStatus={'invalid' as BuildStatus} />,
);
expect(rendered.getByLabelText('Aborted')).toBeInTheDocument();
expect(rendered.getByLabelText('Status aborted')).toBeInTheDocument();
});
});