fix(challenges): fix 2nd test bug

ISSUES CLOSED: #17769, #17039, #16967
This commit is contained in:
ivan3123708
2018-07-02 09:04:50 +02:00
committed by Kristofer Koishigawa
parent 4dc7589a8c
commit 362fc8afc6

View File

@ -221,7 +221,7 @@
{
"text": "A POST request to /login correctly redirects to /",
"testString":
"getUserInput => $.post(getUserInput('url')+ '/login') .then(data => { assert.match(data, /Home page/gi, 'A login attempt at this point should redirect to the homepage since we do not have any registered users'); }, xhr => { throw new Error(xhr.statusText); })"
"getUserInput => $.post(getUserInput('url')+ '/login') .then(data => { assert.match(data, /Looks like this page is being rendered from Pug into HTML!/gi, 'A login attempt at this point should redirect to the homepage since we do not have any registered users'); }, xhr => { throw new Error(xhr.statusText); })"
}
],
"solutions": [],