Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

59 refactor magazines tests to use mocked api routes #60

Merged

Conversation

sgobotta
Copy link
Member

This PR provides:

  • Magazines test re-implementation to use a stubbed API using Cypress
  • Testing utilities to stub routes
  • A magazines fixture

Closes: #59

sgobotta and others added 12 commits January 15, 2019 11:47
+ Adds the name column in the list
+ Sets default sorting as false
+ Changes rowsPerPage as a constant
+ The mocked data is based on a fixture from a stubbed API response
+ A test for the magazine name prop is added
+ The mocked data is based on a fixture from a stubbed API response on the test setup
+ The submit action now sends a request to a stubbed route in the Cypress server
+ The submit action now sends a request to a stubbed route in the Cypress server
+ The magazine to be edited is taken from a stubbed response to the list endpoint in the Cypress server
@estefi-prieto estefi-prieto merged commit 031135d into develop Jan 17, 2019
@sgobotta sgobotta deleted the 59-refactor-magazines-tests-to-use-mocked-api-routes branch February 4, 2019 18:06
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants