mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-27 13:20:23 -04:00
feat: uepr-72: Add dsa requirements link to footer
This commit is contained in:
parent
a1fb738bdd
commit
efcf0dfc65
3 changed files with 13 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue