Links and test changes

This commit is contained in:
apple502j 2019-11-19 01:34:19 +09:00
parent 3f61b09889
commit 6d9a7d20da
4 changed files with 9 additions and 11 deletions

View file

@ -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>

View file

@ -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",

View file

@ -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>
),

View file

@ -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();
});
});