Skip to content

Commit

Permalink
feat: uepr-72: Add dsa requirements link to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaloyan Manolov committed Oct 15, 2024
1 parent a1fb738 commit efcf0df
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/footer/www/footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions src/l10n.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions test/integration/footer-links.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit efcf0df

Please sign in to comment.