Skip to content

Commit 0c8deb7

Browse files
committed
feat: cookie
1 parent 0208056 commit 0c8deb7

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.engine_scripts/puppet/loadCookies.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ module.exports = async (page, scenario) => {
2828
} else {
2929
cookie.url = 'https://' + domain;
3030
}
31+
32+
if (!cookie.expirationDate) {
33+
cookie.expirationDate = Date.now() / 1000 + 31536000; // 1 year from now
34+
}
35+
3136
delete cookie.domain;
3237

3338
parsedCookies.push(cookie);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "regressify",
3-
"version": "1.8.0",
3+
"version": "1.8.1",
44
"description": "Visual regression tests support",
55
"main": "src/index.ts",
66
"type": "module",

0 commit comments

Comments
 (0)