Unverified Commit 4b95b323 authored by Bryce Taylor's avatar Bryce Taylor Committed by GitHub

Merge pull request #4241 from BryceLTaylor/address-skipped-tests

Removed skipped footer integration tests
parents 2d00bc2d b24fa33c
...@@ -140,8 +140,6 @@ tap.test('clickDiscussionForumsLink', options, t => { ...@@ -140,8 +140,6 @@ tap.test('clickDiscussionForumsLink', options, t => {
}); });
}); });
// SCRATCH WIKI test has been removed.
// STATISTICS // STATISTICS
tap.test('clickStatisticsLink', options, t => { tap.test('clickStatisticsLink', options, t => {
const linkText = 'Statistics'; const linkText = 'Statistics';
...@@ -194,28 +192,6 @@ tap.test('clickContactUsLink', options, t => { ...@@ -194,28 +192,6 @@ tap.test('clickContactUsLink', options, t => {
}); });
}); });
// skip this test since it points to an external site
// SCRATCH STORE
tap.test('clickScratchStoreLink', {skip: true}, t => {
const linkText = 'Scratch Store';
const expectedUrl = 'https://scratch-foundation.myshopify.com/';
clickFooterLinks(linkText).then(url => {
t.equal(url, expectedUrl);
t.end();
});
});
// skip this test since it points to an external site
// DONATE
tap.test('clickDonateLink', {skip: true}, t => {
const linkText = 'Donate';
const expectedUrl = 'https://secure.donationpay.org/scratchfoundation/';
clickFooterLinks(linkText).then(url => {
t.equal(url, expectedUrl);
t.end();
});
});
// ==== LEGAL column ==== // ==== LEGAL column ====
// TERMS OF USE // TERMS OF USE
...@@ -249,40 +225,6 @@ tap.test('clickDMCALink', options, t => { ...@@ -249,40 +225,6 @@ tap.test('clickDMCALink', options, t => {
}); });
// ==== SCRATCH FAMILY column ==== // ==== SCRATCH FAMILY column ====
// skip this test since it points to an external site
// SCRATCH ED (SCRATCHED)
tap.test('clickScratchEdLink', {skip: true}, t => {
const linkText = 'ScratchEd';
const expectedUrl = 'http://scratched.gse.harvard.edu/';
clickFooterLinks(linkText).then(url => {
t.equal(url, expectedUrl);
t.end();
});
});
// skip this test since it points to an external site
// SCRATCH JR (SCRATCHJR)
tap.test('clickScratchJrLink', {skip: true}, t => {
const linkText = 'ScratchJr';
const expectedUrl = 'https://www.scratchjr.org/';
clickFooterLinks(linkText).then(url => {
t.equal(url, expectedUrl);
t.end();
});
});
// skip this test since it points to an external site
// SCRATCH DAY
tap.test('clickScratchDayLink', {skip: true}, t => {
const linkText = 'Scratch Day';
const expectedUrl = 'https://day.scratch.mit.edu/';
clickFooterLinks(linkText).then(url => {
t.equal(url, expectedUrl);
t.end();
});
});
// SCRATCH CONFERENCE // SCRATCH CONFERENCE
tap.test('clickScratchConferenceLink', options, t => { tap.test('clickScratchConferenceLink', options, t => {
const linkText = 'Scratch Conference'; const linkText = 'Scratch Conference';
...@@ -292,14 +234,12 @@ tap.test('clickScratchConferenceLink', options, t => { ...@@ -292,14 +234,12 @@ tap.test('clickScratchConferenceLink', options, t => {
t.end(); t.end();
}); });
}); });
// The following links in are skipped because they are not on scratch.mit.edu
// skip this test since it points to an external site // SCRATCH STORE
// DONATE
// SCRATCH WIKI
// SCRATCH ED (SCRATCHED)
// SCRATCH JR (SCRATCHJR)
// SCRATCH DAY
// SCRATCH FOUNDATION // SCRATCH FOUNDATION
tap.test('clickScratchFoundationLink', {skip: true}, t => {
const linkText = 'Scratch Foundation';
const expectedUrl = 'https://www.scratchfoundation.org/';
clickFooterLinks(linkText).then(url => {
t.equal(url, expectedUrl);
t.end();
});
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment