Skip to content

Commit af0fd48

Browse files
inancgumuska3de
andcommitted
Update cookies docs with small fixes
Co-authored-by: ka3de <[email protected]>
1 parent 0053ae6 commit af0fd48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser/02 BrowserContext/addCookies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: 'addCookies()'
33
excerpt: 'Clears context cookies.'
44
---
55

6-
Adds a list of [cookies](/javascript-api/k6-experimental/browser/browsercontext/cookie) into the [BrowserContext](/javascript-api/k6-experimental/browser/browsercontext/cookie). All pages within this [BrowserContext](/javascript-api/k6-experimental/browser/browsercontext/cookie) will have these [cookies](/javascript-api/k6-experimental/browser/browsercontext/cookie) installed.
6+
Adds a list of [cookies](/javascript-api/k6-experimental/browser/browsercontext/cookie) into the [BrowserContext](/javascript-api/k6-experimental/browser/browsercontext/cookie). All pages within this [BrowserContext](/javascript-api/k6-experimental/browser/browsercontext/cookie) will have these [cookies](/javascript-api/k6-experimental/browser/browsercontext/cookie) set.
77

88
<Blockquote mod="info">
99

src/data/markdown/docs/02 javascript api/07 k6-experimental/01 browser/02 BrowserContext/cookies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default async function () {
5050
let cookies = context.cookies();
5151
console.log("initial cookies length:", cookies.length); // prints 0
5252

53-
// let's add more cookies to filter by urls.
53+
// let's add more cookies to filter by urls
5454
context.addCookies([
5555
{ name: 'foo', value: 'foovalue', sameSite: 'Strict', url: 'http://foo.com' },
5656
{ name: 'bar', value: 'barvalue', sameSite: 'Lax', url: 'https://bar.com' },

0 commit comments

Comments
 (0)