mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 15:17:53 -05:00
Links and test changes
This commit is contained in:
parent
3f61b09889
commit
6d9a7d20da
4 changed files with 9 additions and 11 deletions
|
@ -22,7 +22,7 @@ const Footer = props => (
|
|||
</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="/jobs">
|
||||
<a href="https://www.scratchfoundation.org/opportunities">
|
||||
<FormattedMessage id="general.jobs" />
|
||||
</a>
|
||||
</dd>
|
||||
|
@ -83,7 +83,7 @@ const Footer = props => (
|
|||
</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="/jobs">
|
||||
<a href="https://www.scratchfoundation.org/opportunities">
|
||||
<FormattedMessage id="general.jobs" />
|
||||
</a>
|
||||
</dd>
|
||||
|
|
|
@ -148,18 +148,16 @@
|
|||
"title": "Ideas"
|
||||
},
|
||||
{
|
||||
"name": "jobs",
|
||||
"name": "jobs-redirect",
|
||||
"pattern": "^/jobs/?$",
|
||||
"routeAlias": "/jobs(/moderator)?/?$",
|
||||
"view": "jobs/jobs",
|
||||
"title": "Jobs"
|
||||
"redirect": "https://www.scratchfoundation.org/opportunities/"
|
||||
},
|
||||
{
|
||||
"name": "jobs-moderator",
|
||||
"name": "jobs-redirect2",
|
||||
"pattern": "^/jobs/moderator/?$",
|
||||
"routeAlias": "/jobs(/moderator)?/?$",
|
||||
"view": "jobs/moderator/moderator",
|
||||
"title": "Community Moderator"
|
||||
"redirect": "https://www.scratchfoundation.org/opportunities/"
|
||||
},
|
||||
{
|
||||
"name": "join",
|
||||
|
|
|
@ -228,7 +228,7 @@ const Developers = () => (
|
|||
id="developers.joinBody"
|
||||
values={{
|
||||
jobsPageLink: (
|
||||
<a href="/jobs">
|
||||
<a href="https://www.scratchfoundation.org/opportunities">
|
||||
<FormattedMessage id="developers.joinBodyJobsLinkText" />
|
||||
</a>
|
||||
),
|
||||
|
|
|
@ -101,9 +101,9 @@ tap.test('clickCreditsLink', options, t => {
|
|||
// JOBS
|
||||
tap.test('clickJobsLink', options, t => {
|
||||
const linkText = 'Jobs';
|
||||
const expectedHref = '/jobs';
|
||||
const expectedUrl = 'https://www.scratchfoundation.org/opportunities/';
|
||||
clickFooterLinks(linkText).then(url => {
|
||||
t.equal(url.substr(-expectedHref.length), expectedHref);
|
||||
t.equal(url, expectedUrl);
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue