Skip to content

Instantly share code, notes, and snippets.

@ismail1432
Last active March 26, 2021 09:52
Show Gist options
  • Save ismail1432/4258679679ddada2d7cff10c53b810bb to your computer and use it in GitHub Desktop.
Save ismail1432/4258679679ddada2d7cff10c53b810bb to your computer and use it in GitHub Desktop.
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