codeceptjs / codeceptjs/CodeceptJS
"grabCookie" returns not all cookie values.
- 主要語言
- JavaScript
- 星號
- 4.2k
- 分支
- 757
- 平均合併
- 2 天 9 小時
- 30 天內合併 PR
- 16
描述
#### What are you trying to achieve?
I try to receive cookies with "grabCookie" method or share it with REST helper by "setSharedCookies" method in purpose to use browser session in REST helper requests.
#### What do you get instead?
It seems to be working properly, but unfortunately returns only a part of values (3 of 15). I also can not react other values when getting single cookie value with "grabCookie" method.
### Details
* CodeceptJS version: 2.6.6
* NodeJS Version: 10.16.3
* Operating System: Windows 10
* testcafe version: 1.8.8
* Configuration file:
```js
setSharedCookies();
exports.config = {
tests: './test/**/*.test1.ts',
output: './output',
helpers: {
TestCafe: {
waitForTimeout: 10000,
getPageTimeout: 10000,
smartWait: 5000,
browser: "chrome",
url: url,
show: true,
restart: true,
},
REST: {
endpoint: url
},
},
multiple: {
basic: {
browsers: [
"chrome",
"firefox",
"ie",
"edge",
"opera",
"safari",
]
}
},
include: {
I: './steps_file.js'
},
bootstrap: null,
mocha: {},
name: 'test-cafe',
plugins: {
retryFailedStep: {
enabled: true
},
screenshotOnFail: {
enabled: true
},
allure: {
outputDir: 'report',
enabled: true
}
}
};
```
貢獻指南
研究方向
Start by reproducing the issue with the TestCafe helper's grabCookie method and the REST helper's setSharedCookies method using the configuration shown. Compare the three returned cookies with the 15 available in the browser session, including a single-cookie lookup. Done means all accessible cookie values can be retrieved or the unsupported cookie scope is documented.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, node.js
- 領域
- testing-qa
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100