Skip to content

Commit

Permalink
feat(webapi): add waitForCookie
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Feb 1, 2024
1 parent 08a3eb6 commit 22722af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/helper/webapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,8 @@ module.exports.tests = function () {
});

it('should wait for cookie and throw error when cookie not found', async () => {
if (isHelper('TestCafe')) this.skip();

await I.amOnPage('https://google.com');
try {
await I.waitForCookie('auth', 2);
Expand All @@ -900,6 +902,8 @@ module.exports.tests = function () {
});

it('should wait for cookie', async () => {
if (isHelper('TestCafe')) this.skip();

await I.amOnPage('https://google.com');
await I.setCookie({
name: 'auth',
Expand Down

0 comments on commit 22722af

Please sign in to comment.