Skip to content

Commit 37300e2

Browse files
authored
Update readme for Cypress 10
1 parent c521d4a commit 37300e2

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

README.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@ If you'd prefer a more visual review of this package, [please watch this video](
2020
If you haven't already installed [Cypress](https://www.cypress.io/); that's your first step.
2121

2222
```bash
23-
npm install cypress --save-dev && npx cypress open
23+
npm install cypress --save-dev
2424
```
2525

26-
As part of the initial `npx cypress open` command, Cypress will instantly create a `./cypress` directory in your project root,
27-
as well as a `cypress.json` configuration file.
28-
2926
Now you're ready to install this package through Composer. Pull it in as a development-only dependency.
3027

3128
```bash
@@ -38,8 +35,17 @@ Finally, run the `cypress:boilerplate` command to copy over the initial boilerpl
3835
php artisan cypress:boilerplate
3936
```
4037

41-
That's it! You're ready to go. We've declared some initial settings in your project's `cypress.json` file. Have a look real quick and make sure
42-
everything is in order. In particular, please ensure that the `baseUrl` property is set correctly (we default to your app's `APP_URL` environment setting).
38+
That's it! You're ready to go. We've provided an `example.cy.js` spec for you to play around with it. Let's run it now:
39+
40+
```
41+
npx cypress open
42+
```
43+
44+
In the Cypress window that opens, Choose "E2E Testing," and then "Start E2E Testing in Chrome." This will bring up a list of all specs in your application. Of course, at this point, we only have the single example spec. Click `example.cy.js` to run it. Wew! All green.
45+
46+
## Cypress Configuration
47+
48+
We've declared some initial settings in your project's `cypress.config.js` file. Have a quick look now to ensure that everything is in order. In particular, please ensure that the `baseUrl` property is set correctly (we default to your app's `APP_URL` environment setting).
4349

4450
## Environment Handling
4551

0 commit comments

Comments
 (0)