Skip to content

Commit

Permalink
performs logout using the API (#51596)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadameSheema authored Nov 26, 2019
1 parent c4141fa commit e753c35
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 e753c35

Please sign in to comment.