Unverified Commit 2c40e2d7 authored by Eric Rosenbaum's avatar Eric Rosenbaum Committed by GitHub

Merge pull request #2482 from ericrosenbaum/bugfix/fix-tests-for-ideas-page

Update tests
parents 96bc439a 35d76ef5
...@@ -162,10 +162,10 @@ tap.test('clickStatisticsLink', options, t => { ...@@ -162,10 +162,10 @@ tap.test('clickStatisticsLink', options, t => {
// ==== SUPPORT column ==== // ==== SUPPORT column ====
// TIPS PAGE // IDEAS PAGE
tap.test('clickTipsPageLink', options, t => { tap.test('clickIdeasPageLink', options, t => {
const linkText = 'Tips'; const linkText = 'Ideas';
const expectedHref = '/tips'; const expectedHref = '/ideas';
clickFooterLinks(linkText).then(url => { clickFooterLinks(linkText).then(url => {
t.equal(url.substr(-expectedHref.length), expectedHref); t.equal(url.substr(-expectedHref.length), expectedHref);
t.end(); t.end();
......
...@@ -57,9 +57,9 @@ tap.test('checkExploreLinkWhenSignedOut', function (t) { ...@@ -57,9 +57,9 @@ tap.test('checkExploreLinkWhenSignedOut', function (t) {
}); });
}); });
tap.test('checkTipsLinkWhenSignedOut', function (t) { tap.test('checkIdeasLinkWhenSignedOut', function (t) {
var xPathLink = '//li[contains(@class, "link") and contains(@class, "tips")]/a'; var xPathLink = '//li[contains(@class, "link") and contains(@class, "ideas")]/a';
var expectedHref = '/tips'; var expectedHref = '/ideas';
driver.findElement(webdriver.By.xpath(xPathLink)) driver.findElement(webdriver.By.xpath(xPathLink))
.then(function (element) { .then(function (element) {
return element.getAttribute('href'); return element.getAttribute('href');
......
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