mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[FTR] Anonymous login (#190159)
## Summary Moved `anonymous_user` deletion after the URL check. If we delete `anonymous_user` it automatically terminates the session which can lead to flakiness, since we performed URL check after user deletion. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed __Fixes: https://github.com/elastic/kibana/issues/111377__
This commit is contained in:
parent
77be3c0b32
commit
1a82dd6f57
1 changed files with 2 additions and 1 deletions
|
@ -132,11 +132,12 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
full_name: 'Guest',
|
||||
});
|
||||
await PageObjects.security.loginSelector.login('anonymous', 'anonymous1');
|
||||
await security.user.delete('anonymous_user');
|
||||
|
||||
// We need to make sure that both path and hash are respected.
|
||||
const currentURL = parse(await browser.getCurrentUrl());
|
||||
expect(currentURL.pathname).to.eql('/app/management/security/users');
|
||||
|
||||
await security.user.delete('anonymous_user');
|
||||
});
|
||||
|
||||
it('can login after `Unauthorized` error after request authentication preserving original URL', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue