mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Look for correct URL in See Inside test
This commit is contained in:
parent
78dfaf07a8
commit
b1b6aa66a0
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue