mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ftr/pageObjects/security] try simplified logout check to avoid flakiness (#28893)
* [ftr/pageObjects/security] try simplified logout check to avoid flakiness * [pageObjects/security] wait for longer than normal
This commit is contained in:
parent
93930326de
commit
4911fb1ce8
1 changed files with 3 additions and 12 deletions
|
@ -95,18 +95,9 @@ export function SecurityPageProvider({ getService, getPageObjects }) {
|
|||
|
||||
await find.clickByLinkText('Logout');
|
||||
|
||||
await retry.try(async () => {
|
||||
const loginFormExists = await find.existsByDisplayedByCssSelector('.login-form');
|
||||
|
||||
const logoutLinkExists = await find.existsByLinkText('Logout');
|
||||
if (logoutLinkExists) {
|
||||
await find.clickByLinkText('Logout');
|
||||
}
|
||||
|
||||
if (!loginFormExists) {
|
||||
throw new Error('Logout is not completed yet');
|
||||
}
|
||||
});
|
||||
await retry.waitForWithTimeout('login form', config.get('timeouts.waitFor') * 5, async () => (
|
||||
await find.existsByDisplayedByCssSelector('.login-form')
|
||||
));
|
||||
}
|
||||
|
||||
async clickRolesSection() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue