pull problematic comment into own temp file

This commit is contained in:
Loren Norman
2017-06-19 15:32:38 -04:00
parent 36c9be6991
commit 137508d67f
2 changed files with 29 additions and 29 deletions

View File

@@ -0,0 +1,29 @@
<!--
# Add Cypress to Your App
Add Cypress to your app as we did before with `npm`:
```shell
$ npm install cypress --save-dev
```
...and make yourself an `npm` script in `package.json` to run it easily (we named it "test-cypress" this time because we're assuming you already have a "test" script, but the name is arbitrary):
***package.json***
```json
{
"scripts": {
"test-cypress": "cypress open"
}
}
```
Now you can run Cypress from the command line by typing `npm run test-cypress`, do so now. Cypress will open and generate the needed files to get started. (You may delete `./cypress/integration/example_spec.js` if you wish, it is only provided as, you guessed it, an example.)
{% note info Which Project To Install To? %}
Does your application have multiple project repositories? Many modern applications do! Cypress should be installed with your *front-end project*, wherever you serve the front-end files for development.
{% endnote %}
-->

View File

@@ -32,35 +32,6 @@ Projects added in our Desktop Application are strictly local to your computer. T
- You will then come to a page listing all files in your project's `cypress/integration` folder. If it's a new project, you'll see a message about the folder structure generated for you and also an `example_spec.js` file.
- Click on the test file you want to run or click "Run All Tests".
<!--
# Add Cypress to Your App
Add Cypress to your app as we did before with `npm`:
```shell
$ npm install cypress --save-dev
```
...and make yourself an `npm` script in `package.json` to run it easily (we named it "test-cypress" this time because we're assuming you already have a "test" script, but the name is arbitrary):
***package.json***
```json
{
"scripts": {
"test-cypress": "cypress open"
}
}
```
Now you can run Cypress from the command line by typing `npm run test-cypress`, do so now. Cypress will open and generate the needed files to get started. (You may delete `./cypress/integration/example_spec.js` if you wish, it is only provided as, you guessed it, an example.)
{% note info Which Project To Install To? %}
Does your application have multiple project repositories? Many modern applications do! Cypress should be installed with your *front-end project*, wherever you serve the front-end files for development.
{% endnote %}
-->
# Visit Your Development URL
First things first, you'll want to visit your app, plain and simple. We'll start where your users start: the home page. Create a new file in the `./cypress/integration` folder, `home_page_spec.js`, and fill it in with a simple test that calls the {% url "`cy.visit()`" visit %} command, something like this: