Commit 35d76ef5 authored by Eric Rosenbaum's avatar Eric Rosenbaum

Update tests

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