Look for correct URL in See Inside test

This commit is contained in:
BryceLTaylor 2018-11-27 11:37:22 -05:00
parent 78dfaf07a8
commit b1b6aa66a0

View file

@ -82,7 +82,7 @@ test('clicking See Inside should take you to the editor', t => {
.then(() => clickXpath('//a[@data-control="edit"]')) .then(() => clickXpath('//a[@data-control="edit"]'))
.then(() => driver.getCurrentUrl()) .then(() => driver.getCurrentUrl())
.then(function (u) { .then(function (u) {
var expectedUrl = '/#editor'; var expectedUrl = '/editor';
t.equal(u.substr(-expectedUrl.length), expectedUrl, 'after clicking, the URL should end in #editor'); t.equal(u.substr(-expectedUrl.length), expectedUrl, 'after clicking, the URL should end in #editor');
}) })
.then(() => t.end()); .then(() => t.end());