-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add context that checks the resonse headers
- Loading branch information
Showing
5 changed files
with
83 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Feature: HTTP response | ||
|
||
Scenario: Check http status code | ||
|
||
When I am on "/" | ||
Then the HTTP status should be 200 | ||
|
||
When I am on "/the-page-not-found" | ||
Then the HTTP status should be 404 | ||
|
||
Scenario: Check http response headers | ||
|
||
When I am on "/" | ||
Then the HTTP headers should be: | ||
| header | value | | ||
| Content-Type | text/html; charset=UTF-8 | | ||
| Connection | close | | ||
| Host | 127.0.0.1:8080 | |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters