Codeception / Codeception/lib-innerbrowser
Suggestion: `seeResponseIsPdf()`
未關閉
- 主要語言
- PHP
- 星號
- 87
- 分支
- 20
- PR 合併指標
- 30 天內沒有已合併 PR
描述
It would be nice to be able to assert that a response is indeed a PDF.
Right now, I'm doing it with something like:
```php
$I->seeHttpHeader('Content-Type', 'application/pdf');
$I->seeResponseContains('%PDF-1.');
```
REST module has [`seeResponseIsJson()`](https://codeception.com/docs/modules/REST#seeResponseIsJson) and [`seeResponseIsXml()`](https://codeception.com/docs/modules/REST#seeResponseIsXml)
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
先比較 REST 模組的 seeResponseIsJson() 和 seeResponseIsXml() 進入點與所要求的 PDF 斷言。追蹤 InnerBrowser 如何提供回應斷言,接著為 PDF 回應新增等效行為,並根據 issue 中所描述的 Content-Type 和 PDF 簽章進行驗證。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- php
- 領域
- testing
- Issue 類型
- 功能
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100