Last active
March 26, 2021 09:52
-
-
Save ismail1432/4258679679ddada2d7cff10c53b810bb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Scenario: I should be able to update a Bookmark | |
Given I add "Content-Type" header equal to "application/json" | |
And I send a "PUT" request to "/bookmarks/a179e430-6356-4fb5-91b2-ead2e166fa77" with body: | |
""" | |
{ | |
"title": "bookmark_1 edited", | |
"author": "Adah edited", | |
"url": "www.such-url-1-edited.com", | |
"height": 25, | |
"width": 49, | |
"duration": 180 | |
} | |
""" | |
And the JSON nodes should be equal to: | |
| title | bookmark_1 edited | | |
| author | Adah edited | | |
| createdAt | 2018-06-01T00:00:00+00:00 | | |
| url | www.such-url-1-edited.com | | |
| height | 25 | | |
| width | 49 | | |
| duration | 180 | | |
Then the response status code should be 200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment