🔧 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,23 +2,33 @@
Social App for connecting with developers & tech enthusiasts. 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 ## Built With
* [ReactJs](https://reactjs.org/) - A JavaScript library for building user interfaces - [ReactJs](https://reactjs.org/) - A JavaScript library for building user interfaces
* [Redux](https://redux.js.org/) - A predictable statea container for JavaScript apps - [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 - [ROME](https://fiirebase.google.com/) - Firebase helps mobile and web app teams succeed
## Versioning ## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags). We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).
## Authors ## Authors
* **Ruidy Nemausat** - *Initial work* - [rjNemo](https://github.com/rjNemo/) - **Ruidy Nemausat** - _Initial work_ - [rjNemo](https://github.com/rjNemo/)
## License ## License
@ -26,5 +36,4 @@ This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md
## Acknowledgments ## 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');
});
});