Skip to content

Commit

Permalink
Update readme for Cypress 10
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay authored Jun 27, 2022
1 parent c521d4a commit 37300e2
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@ If you'd prefer a more visual review of this package, [please watch this video](
If you haven't already installed [Cypress](https://www.cypress.io/); that's your first step.

```bash
npm install cypress --save-dev && npx cypress open
npm install cypress --save-dev
```

As part of the initial `npx cypress open` command, Cypress will instantly create a `./cypress` directory in your project root,
as well as a `cypress.json` configuration file.

Now you're ready to install this package through Composer. Pull it in as a development-only dependency.

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

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
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).
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:

```
npx cypress open
```

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.

## Cypress Configuration

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).

## Environment Handling

Expand Down

0 comments on commit 37300e2

Please sign in to comment.