Skip to content

Commit

Permalink
Improve cookies example
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Sep 19, 2023
1 parent 13e4ed4 commit 31ca8bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ export default async function () {
'the second filtered cookie name should be baz': c => c.name === 'baz',
'the second filtered cookie value should be 44': c => c.value === '44',
});

// clear cookies
context.clearCookies();
cookies = context.cookies();
check(cookies.length, {
'number of cookies should be zero': n => n === 0,
});
} finally {
page.close();
}
Expand Down

0 comments on commit 31ca8bd

Please sign in to comment.