Skip to content

Commit 6493249

Browse files
committed
updated to latest
1 parent cddf9f7 commit 6493249

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# Applitools Example: Cypress in JavaScript
22

3-
This is the example project for the [Cypress JavaScript tutorial](https://applitools.com/tutorials/quickstart/web/cypress).
3+
This is the example project for the [Cypress JavaScript tutorial](https://applitools.com/tutorials/sdks/cypress/quickstart).
44
It shows how to start automating visual tests
55
with [Applitools Eyes](https://applitools.com/platform/eyes/)
66
and [Cypress](https://www.cypress.io/) in JavaScript.
77

88
It uses:
99

10-
* [JavaScript](https://www.javascript.com/) as the programming language
1110
* [Cypress](https://www.cypress.io/) for browser automation
1211
* [Google Chrome](https://www.google.com/chrome/downloads/) as the local browser for testing
1312
* [npm](https://www.npmjs.com/) for dependency management
@@ -19,10 +18,6 @@ To run this example project, you'll need:
1918
1. An [Applitools account](https://auth.applitools.com/users/register), which you can register for free
2019
2. [Node.js](https://nodejs.org/en/download/) version 16 or higher
2120
3. A good JavaScript editor like [Visual Studio Code](https://code.visualstudio.com/docs/languages/javascript)
22-
4. Up-to-date versions of the following browsers:
23-
* [Google Chrome](https://www.google.com/chrome/)
24-
* [Mozilla Firefox](https://www.mozilla.org/en-US/firefox/new/)
25-
* [Microsoft Edge](https://www.microsoft.com/en-us/edge)
2621

2722
To install project dependencies and set up Applitools Eyes, run:
2823

@@ -32,10 +27,12 @@ npx eyes-setup
3227
```
3328

3429
The Applitools config file is [`applitools.config.js`](applitools.config.js).
35-
The main test spec is [`acme-bank.spec.js`](cypress/integration/acme-bank.spec.js).
30+
The main test spec is [`simple-example.cy.js`](cypress/e2e/simple-example.cy.js).
3631

3732
To execute tests, set the `APPLITOOLS_API_KEY` environment variable
38-
to your [account's API key](https://applitools.com/tutorials/guides/getting-started/registering-an-account).
33+
to your [account's API key](https://applitools.com/tutorials/getting-started/retrieve-api-key).
34+
35+
* Note: If you are not using the Eyes public cloud, you will need to update the `serverUrl` to your Eyes server URL in the **applitools.config.js** configuration file or set via an `APPLITOOLS_SERVER_URL` environment variable. See our [documentation](https://applitools.com/tutorials/sdks/cypress/advanced#available-configuration-properties) for more information on these settings.
3936

4037
Then, to open the Cypress window for launching tests, run:
4138

@@ -50,4 +47,4 @@ npx cypress run
5047
```
5148

5249
**For full instructions on running this project, take our
53-
[Cypress JavaScript tutorial](https://applitools.com/tutorials/quickstart/web/cypress)!**
50+
[Cypress JavaScript tutorial](https://applitools.com/tutorials/sdks/cypress/quickstart)!**

applitools.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
module.exports = {
2+
3+
apiKey: process.env.APPLITOOLS_API_KEY,
4+
serverUrl: "https://eyes.applitools.com",
5+
26
// Specify the number of visual checkpoints Applitools will perform in parallel.
37
// Warning: If you have a free account, then concurrency will be limited to 1.
4-
testConcurrency: 5,
8+
testConcurrency: 10,
9+
510

611
// Uncomment the below line and paste in your API key as an alternative to using an environment variable
712
// apiKey: '',

cypress/support/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import "@applitools/eyes-cypress"

0 commit comments

Comments
 (0)