Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test PR #2336

Closed
Closed

Test PR #2336

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion packages/nuxeo-web-ui-ftest/pages/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@ export default class Login {
}

static get() {
const waitForPageLoad = () => {
browser.waitUntil(() => browser.execute(() => document.readyState === 'complete'), {
timeout: 60 * 1000, // 60 seconds
timeoutMsg: 'Message on failure',
});
};

return (async () => {
const baseUrl = process.env.NUXEO_URL || '';
await driver.pause(1000);
await browser.url(baseUrl ? `${baseUrl}/logout` : 'logout');
await browser.getTitle();
waitForPageLoad();
return new this();
})();
}
Expand Down
Loading