Codeception / Codeception/lib-innerbrowser
Suggestion: `seeResponseIsPdf()`
Open
- Dominant language
- PHP
- Stars
- 87
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
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)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.