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

Update tests
This commit is contained in:
Eric Rosenbaum 2018-12-14 09:12:07 -05:00 committed by GitHub
commit 2c40e2d78a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

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

View file

@ -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');