Skip to content
Snippets Groups Projects
Commit 39488a56 authored by Art Lowel's avatar Art Lowel Committed by GitHub
Browse files

Merge pull request #176 from LotteHofstede/e2e-merge-fix

Fixed issue with e2e tests after merging
parents c5777dd4 888aed46
No related branches found
No related tags found
No related merge requests found
......@@ -32,8 +32,10 @@ describe('protractor SearchPage', () => {
scope.then((scopeString: string) => {
page.setCurrentScope(scopeString);
page.submitSearchForm();
browser.getCurrentUrl().then((url: string) => {
expect(url.indexOf('scope=' + encodeURI(scopeString))).toBeGreaterThanOrEqual(0);
browser.wait(() => {
return browser.getCurrentUrl().then((url: string) => {
return url.indexOf('scope=' + encodeURI(scopeString)) !== -1;
});
});
});
});
......@@ -42,8 +44,10 @@ describe('protractor SearchPage', () => {
const queryString = 'Another interesting query string';
page.setCurrentQuery(queryString);
page.submitSearchForm();
browser.getCurrentUrl().then((url: string) => {
expect(url.indexOf('query=' + encodeURI(queryString))).toBeGreaterThanOrEqual(0);
browser.wait(() => {
return browser.getCurrentUrl().then((url: string) => {
return url.indexOf('query=' + encodeURI(queryString)) !== -1;
});
});
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment