UNPKG

e2ed

Version:

E2E testing framework over Playwright

19 lines (18 loc) 724 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.deleteCookies = void 0; const log_1 = require("../utils/log"); /** * Deletes cookies with the specified cookies parameters. * If there are no cookies parameters, deletes all the cookies. */ const deleteCookies = (cookiesParameters) => { if (cookiesParameters === undefined) { (0, log_1.log)('Deletes all the cookies from all pages', 5 /* LogEventType.InternalAction */); return Promise.resolve(); } (0, log_1.log)('Deletes cookies with the specified parameters', { cookiesParameters }, 5 /* LogEventType.InternalAction */); // TODO return Promise.resolve(); }; exports.deleteCookies = deleteCookies;