🔧 set cypress up

- define a baseUrl in cypress.json
- create a smoke.spec.js to check config.
This commit is contained in:
Ruidy Nemausat 2020-05-12 10:03:34 +02:00
parent bf0c645e3b
commit f931fb3770
3 changed files with 28 additions and 11 deletions

View file

@ -2,14 +2,25 @@
Social App for connecting with developers & tech enthusiasts.
## Tests
### End-to-end
- [Cypress](https://www.cypress.io) - JavaScript End to End Testing Framework
Open test runner with:
```sh
yarn cypress
```
and edit your E2E test cases in `cypress/integration/` folder.
## Built With
* [ReactJs](https://reactjs.org/) - A JavaScript library for building user interfaces
* [Redux](https://redux.js.org/) - A predictable statea container for JavaScript apps
* [ROME](https://fiirebase.google.com/) - Firebase helps mobile and web app teams succeed
- [ReactJs](https://reactjs.org/) - A JavaScript library for building user interfaces
- [Redux](https://redux.js.org/) - A predictable statea container for JavaScript apps
- [ROME](https://fiirebase.google.com/) - Firebase helps mobile and web app teams succeed
## Versioning
@ -17,8 +28,7 @@ We use [SemVer](http://semver.org/) for versioning. For the versions available,
## Authors
* **Ruidy Nemausat** - *Initial work* - [rjNemo](https://github.com/rjNemo/)
- **Ruidy Nemausat** - _Initial work_ - [rjNemo](https://github.com/rjNemo/)
## License
@ -26,5 +36,4 @@ This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md
## Acknowledgments
* [Inspiration](https://github.com/bradtraversy/devconnector_2.0)
- [Inspiration](https://github.com/bradtraversy/devconnector_2.0)

View file

@ -1 +1,3 @@
{}
{
"baseUrl": "http://localhost:3000/"
}

View file

@ -0,0 +1,6 @@
describe('smoke', () => {
it('sees learn', () => {
cy.visit('/');
cy.get('a').contains('Learn');
});
});