Skip to content

Commit

Permalink
performs logout using the API (elastic#51596)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadameSheema committed Nov 26, 2019
1 parent f9002a5 commit c61521e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

0 comments on commit c61521e

Please sign in to comment.