Skip to content

Commit 9af6201

Browse files
committed
fix conflicts
2 parents a4c6703 + e846398 commit 9af6201

File tree

9 files changed

+2388
-2648
lines changed

9 files changed

+2388
-2648
lines changed

docs/helpers/Nightmare.md

Lines changed: 261 additions & 275 deletions
Large diffs are not rendered by default.

docs/helpers/Playwright.md

Lines changed: 571 additions & 624 deletions
Large diffs are not rendered by default.

docs/helpers/Protractor.md

Lines changed: 355 additions & 375 deletions
Large diffs are not rendered by default.

docs/helpers/Puppeteer.md

Lines changed: 497 additions & 588 deletions
Large diffs are not rendered by default.

docs/helpers/TestCafe.md

Lines changed: 249 additions & 265 deletions
Large diffs are not rendered by default.

docs/helpers/WebDriver.md

Lines changed: 449 additions & 516 deletions
Large diffs are not rendered by default.

docs/webapi/clearCookie.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ if none provided clears all cookies.
33

44
```js
55
I.clearCookie();
6-
I.clearCookie('test'); // Playwright currently doesn't support clear a particular cookie name
6+
I.clearCookie('test');
77
```
88

99
@param {?string} [cookie=null] (optional, `null` by default) cookie name

lib/helper/Playwright.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,10 +1980,11 @@ class Playwright extends Helper {
19801980
/**
19811981
* {{> clearCookie }}
19821982
*/
1983-
async clearCookie() {
1984-
// Playwright currently doesn't support to delete a certain cookie
1985-
// https://github.com/microsoft/playwright/blob/main/docs/src/api/class-browsercontext.md#async-method-browsercontextclearcookies
1983+
async clearCookie(cookieName) {
19861984
if (!this.browserContext) return
1985+
if (cookieName) {
1986+
return this.browserContext.clearCookies({ name: cookieName })
1987+
}
19871988
return this.browserContext.clearCookies()
19881989
}
19891990

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
"sinon": "19.0.2",
157157
"sinon-chai": "3.7.0",
158158
"testcafe": "3.7.1",
159-
"ts-morph": "24.0.0",
159+
"ts-morph": "25.0.0",
160160
"ts-node": "10.9.2",
161161
"tsd": "^0.31.0",
162162
"tsd-jsdoc": "2.5.0",

0 commit comments

Comments
 (0)