feat: uepr-72: Add dsa requirements link to footer

This commit is contained in:
Kaloyan Manolov 2024-10-11 14:03:32 +03:00
parent a1fb738bdd
commit efcf0dfc65
3 changed files with 13 additions and 0 deletions
src
components/footer/www
l10n.json
test/integration

View file

@ -179,6 +179,11 @@ const Footer = props => (
<FormattedMessage id="general.dmca" />
</a>
</dd>
<dd>
<a href="https://www.scratchfoundation.org/DSA/">
<FormattedMessage id="general.dsa" />
</a>
</dd>
</dl>
<dl>

View file

@ -27,6 +27,7 @@
"general.credits": "Our Team",
"general.donors": "Donors",
"general.dmca": "DMCA",
"general.dsa": "DSA requirements",
"general.emailAddress": "Email address",
"general.english": "English",
"general.error": "Oops! Something went wrong",

View file

@ -160,6 +160,13 @@ describe('www-integration footer links', () => {
const pathname = (new URL(url)).pathname;
expect(pathname).toMatch(/^\/DMCA\/?$/);
});
test('click DSA requirements link', async () => {
await clickText('DSA requirements');
await waitUntilDocumentReady();
const url = await driver.getCurrentUrl();
expect(url).toMatch(/^https:\/\/www.scratchfoundation.org\/DSA\/$/);
});
});
// The following links in the footer are skipped because they are not part of scratch-www