Skip to content

Api#13

Open
ChrissyDev wants to merge 9 commits intosttaran:masterfrom
ChrissyDev:api
Open

Api#13
ChrissyDev wants to merge 9 commits intosttaran:masterfrom
ChrissyDev:api

Conversation

@ChrissyDev
Copy link

Please read and mark the following check list before creating a pull request (check one with "x"):

Short description of what this resolves:

it('should get a post by id', () => {
cy.request(`${baseUrl}/posts/1`)
.its('status')
.should('eq', 200);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check response body

.should('eq', 200);
cy.request(`${baseUrl}/posts`)
.its('body')
.should('not.be.empty')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check all objects in array have required fields

};
cy.request('POST', `${baseUrl}/posts`, newPost)
.its('status')
.should('eq', 201);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check response body contains request body

Comment on lines +36 to +38
cy.request('PUT', `${baseUrl}/posts/1`, updatedPost)
.its('status')
.should('eq', 200);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check response body contains request body

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants