Merge pull request #2351 from BryceLTaylor/Integration-test-update

Get integration tests to pass after preview to project change
This commit is contained in:
Bryce Taylor 2018-11-27 14:19:09 -05:00 committed by GitHub
commit cfcd2abd53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,6 @@
const webdriver = require('selenium-webdriver');
const bindAll = require('lodash.bindall');
require('chromedriver');
const headless = process.env.SMOKE_HEADLESS || false;
const remote = process.env.SMOKE_REMOTE || false;

View file

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