From 3132dc696e51f328c7af11b030ad31d5ba57ab94 Mon Sep 17 00:00:00 2001 From: BryceLTaylor Date: Tue, 5 Mar 2019 15:29:07 -0500 Subject: [PATCH 1/2] Update the integration test for the Scratch Conference link in the footer --- test/integration/smoke-testing/test_footer_links.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/smoke-testing/test_footer_links.js b/test/integration/smoke-testing/test_footer_links.js index 1888034c6..fcdc62ab6 100644 --- a/test/integration/smoke-testing/test_footer_links.js +++ b/test/integration/smoke-testing/test_footer_links.js @@ -281,7 +281,7 @@ tap.test('clickScratchDayLink', options, t => { // SCRATCH CONFERENCE tap.test('clickScratchConferenceLink', options, t => { const linkText = 'Scratch Conference'; - const expectedHref = '/conference'; + const expectedHref = '/conference/2019'; clickFooterLinks(linkText).then(url => { t.equal(url.substr(-expectedHref.length), expectedHref); t.end(); From 3f120ad830db076d1bad8a7dbce5284b7b778b63 Mon Sep 17 00:00:00 2001 From: BryceLTaylor Date: Thu, 7 Mar 2019 11:41:50 -0500 Subject: [PATCH 2/2] futureproof test for conference link --- test/integration/smoke-testing/test_footer_links.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/smoke-testing/test_footer_links.js b/test/integration/smoke-testing/test_footer_links.js index fcdc62ab6..8b1903446 100644 --- a/test/integration/smoke-testing/test_footer_links.js +++ b/test/integration/smoke-testing/test_footer_links.js @@ -281,9 +281,9 @@ tap.test('clickScratchDayLink', options, t => { // SCRATCH CONFERENCE tap.test('clickScratchConferenceLink', options, t => { const linkText = 'Scratch Conference'; - const expectedHref = '/conference/2019'; + const expectedHref = '/conference/20'; clickFooterLinks(linkText).then(url => { - t.equal(url.substr(-expectedHref.length), expectedHref); + t.match(url.substr(-(expectedHref.length + 2)), expectedHref); t.end(); }); });