button-inc / digital_marketplace

The intent of this development is to build a product that will support digital procurement needs for the BC Government including services such as, but not limited to, Sprint With Us, Code With Us, The Procurement Concierge.
Apache License 2.0
0 stars 0 forks source link

Cypress: set up locally and in CI, write first test #121

Closed BCerki closed 2 years ago

BCerki commented 2 years ago

This PR addresses issue: #107 and #101

Includes tests? y Rebased on main address to conflicts? n/a Updated docs? y

Proposed changes: -write a Cypress test that checks if a gov user can create and save a draft of a CWU opportunity. This involved the following pre-reqs: -- add an endpoint that authenticates a user for testing (endpoint only exists in dev) --update docker-compose to use latest postgres -- create two fixtures -- update docs with instructions for running the cypress tests -- tweak some configs --create a github action file to run the tests in CI

Additional notes -there's some good conversation in this PR: https://github.com/button-inc/digital_marketplace/pull/111