mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
parent
5d3d25c41a
commit
181f1df0b2
1 changed files with 6 additions and 3 deletions
|
@ -4,9 +4,12 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { LOGOUT } from '../urls';
|
||||
|
||||
export const logout = (): null => {
|
||||
cy.visit(`${Cypress.config().baseUrl}${LOGOUT}`);
|
||||
cy.request({
|
||||
method: 'GET',
|
||||
url: `${Cypress.config().baseUrl}/logout`,
|
||||
}).then(response => {
|
||||
expect(response.status).to.eq(200);
|
||||
});
|
||||
return null;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue