Skip to content

Commit

Permalink
Implement logout
Browse files Browse the repository at this point in the history
  • Loading branch information
mescalantea committed Feb 6, 2025
1 parent 30f1811 commit 7447490
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests-e2e/fixtures/base/BackOffice.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ export default class BackOffice extends BaseBackOffice {
* @returns {Promise<void>}
*/
async logout(options = {}) {
throw new Error('Not implemented');
// clear all cookies to remove session.
await this.page.context().clearCookies();
}

async #gotoLinkTarget(link, append = '') {
Expand Down

0 comments on commit 7447490

Please sign in to comment.