imagestable: request.json link now non-styled

By adding custom CSS For the `ib-subdued-link` class the link now looks
like normal text. This approach was chosen as other approaches such as
clicking a non-rendered link cause serious ruckus in the test suite.

This resolves: #805.
This commit is contained in:
Simon de Vlieger 2022-10-25 14:39:17 +02:00 committed by Lucas Garfield
parent 87b853fc13
commit 35afba1bf2
3 changed files with 15 additions and 2 deletions

View file

@ -487,7 +487,9 @@ describe('Images Table', () => {
// No actual clicking because downloading is hard to test.
// Instead, we just check href and download properties of the <a> element.
const downloadLink = within(downloadButton).getByRole('link');
expect(downloadLink.download).toBe('request.json');
expect(downloadLink.download).toBe(
'request-1579d95b-8f1d-4982-8c53-8c2afa4ab04c.json'
);
const hrefParts = downloadLink.href.split(',');
expect(hrefParts.length).toBe(2);