Skip to content

Commit d61189e

Browse files
authored
Merge pull request #18566 from cypress-io/lmiller1990/merge-in-develop-2020-10-20
chore: backmerge develop into unified-desktop-gui
2 parents 2e9ed8d + 21e1df0 commit d61189e

File tree

850 files changed

+47805
-1085
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

850 files changed

+47805
-1085
lines changed

.eslintignore

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,21 @@
1414
**/support/fixtures/projects/**/static/*
1515
**/support/fixtures/projects/**/*.jsx
1616
**/support/fixtures/projects/**/fail.js
17+
18+
system-tests/fixtures/*
19+
!system-tests/projects
20+
system-tests/projects/**/_fixtures/*
21+
system-tests/projects/**/static/*
22+
system-tests/projects/**/*.jsx
23+
system-tests/projects/**/fail.js
24+
system-tests/lib/scaffold/plugins/index.js
25+
system-tests/lib/scaffold/support/index.js
26+
system-tests/lib/scaffold/support/commands.js
27+
system-tests/test/support/projects/e2e/cypress/
28+
system-tests/projects/e2e/cypress/integration/stdout_exit_early_failing_spec.js
29+
system-tests/projects/e2e/cypress/integration/typescript_syntax_error_spec.ts
30+
31+
1732
**/test/fixtures
1833
**/vendor
1934

@@ -23,11 +38,7 @@ cli/types
2338
packages/example
2439

2540
packages/extension/test/helpers/background.js
26-
packages/server/lib/scaffold/plugins/index.js
27-
packages/server/lib/scaffold/support/index.js
28-
packages/server/lib/scaffold/support/commands.js
29-
packages/server/test/support/fixtures/projects/e2e/cypress/integration/stdout_exit_early_failing_spec.js
30-
packages/server/test/support/fixtures/projects/e2e/cypress/integration/typescript_syntax_error_spec.ts
41+
integration/stdout_exit_early_failing_spec.js
3142

3243
npm/webpack-preprocessor/cypress/tests/e2e/compile-error.js
3344
npm/webpack-preprocessor/examples/use-babelrc/cypress/integration/spec.js

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ packages/server/test/support/fixtures/server/libs
6363
# from socket, dist built files
6464
packages/socket/lib/*.js
6565

66+
# from system-tests
67+
system-tests/.projects
68+
system-tests/fixtures/large-img
69+
6670
# from npm/react
6771
/npm/react/bin/*
6872
/npm/react/cypress/videos
@@ -362,7 +366,6 @@ $RECYCLE.BIN/
362366
# Windows shortcuts
363367
*.lnk
364368

365-
/npm/react/bin/*
366369
# End of https://www.gitignore.io/api/osx,git,node,windows,intellij,linux
367370

368371
# Circle cache artifacts

.vscode/extensions.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
// To see these extensions in VS Code:
3+
// 1. Open the Command Palette (Ctrl+Shift+P)
4+
// 2. Select "Extensions: Show Recommended Extensions"
5+
6+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
7+
8+
// List of extensions which are recommended for Cypress contributors using VS Code:
9+
"recommendations": [
10+
// Name: ESLint
11+
// Description: Integrates ESLint JavaScript into VS Code.
12+
"dbaeumer.vscode-eslint",
13+
// Name: GitHub linker
14+
// Description: Create links to fragments of code in GitHub
15+
"gimenete.github-linker",
16+
// Name: GitLens — Git supercharged
17+
// Description: Supercharge the Git capabilities built into Visual Studio Code — Visualize code authorship at a glance via Git blame annotations and code lens, seamlessly navigate and explore Git repositories, gain valuable insights via powerful comparison commands, and so much more
18+
"eamodio.gitlens",
19+
// Name: Terminals Manager
20+
// Description: An extension for setting-up multiple terminals at once, or just running some commands
21+
// There are several Terminals defined in `.vscode/terminals.json` that can be used via this plugin.
22+
"fabiospampinato.vscode-terminals",
23+
// Name: Test Utils
24+
// Description: Add, remove, and move .only in tests
25+
"chrisbreiding.test-utils",
26+
// Name: Toggle Quotes
27+
// Description: Toggle cycle " -> ' -> `
28+
"britesnow.vscode-toggle-quotes",
29+
],
30+
31+
// List of extensions recommended by VS Code that should not be recommended for Cypress contributors using VS Code:
32+
"unwantedRecommendations": [
33+
34+
]
35+
}

.vscode/terminals.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,20 @@
2424
"command": "yarn cypress:run --project ../project"
2525
},
2626
{
27-
"name": "packages/server test-e2e",
27+
"name": "cypress open (CT)",
28+
"focus": true,
29+
"onlySingle": true,
30+
"execute": true,
31+
"cwd": "[cwd]/packages/server-ct",
32+
"command": "yarn cypress:open"
33+
},
34+
{
35+
"name": "system-tests test",
2836
"focus": true,
2937
"onlySingle": true,
3038
"execute": false,
31-
"cwd": "[cwd]/packages/server",
32-
"command": "yarn test-e2e [fileBasename]"
39+
"cwd": "[cwd]/system-tests",
40+
"command": "yarn test [fileBasename]"
3341
},
3442
{
3543
"name": "packages/server test-watch",

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ By default, top level tasks will execute for all packages. However, most scripts
396396
| `test-unit` | Run unit tests |
397397
| `test-integration` | Run integration tests |
398398
| `test-e2e` | Run end-to-end tests |
399+
| `test-system` | Run system tests |
399400
| `test-watch` | Run unit tests and rebuild/rerun on file changes |
400401
401402
> Most of the time you will only want to run a task within a specific package; this can be done by providing the package name as a scope to the top level task.
@@ -428,7 +429,6 @@ Each package is responsible for building itself and testing itself and can do so
428429
| `test` | Runs all tests once (this usually means running unit tests; via `yarn test-unit`) |
429430
| `test-unit` | Run all unit tests within the package; `exit 0` if N/A |
430431
| `test-integration` | Run all integration tests within the package; `exit 0` if N/A |
431-
| `test-e2e` | Run all e2e tests within the package; `exit 0` if N/A |
432432
| `test-watch` | Run all unit tests in the package in watch mode |
433433
434434
#### Debugging
@@ -486,11 +486,11 @@ This is to ensure that links do not go dead in older versions of Cypress when th
486486
487487
For most packages there are typically unit and integration tests.
488488
489-
Our true e2e tests are in [`packages/server`](packages/server), which test the full stack all together.
489+
Please refer to each packages' `README.md` which documents how to run tests. It is not feasible to try to run all of the tests together. We run our entire test fleet across over a dozen containers in CI.
490490
491-
Additionally, we test the code by running it against various other example projects in CI. See CI badges and links at the top of this document.
491+
There are also a set of system tests in [`system-tests`](system-tests) which attempt to test the entire Cypress App as close to real world as possible. See the [`README`](system-tests/README.md) for more information.
492492
493-
Please refer to each packages' `README.md` which documents how to run tests. It is not feasible to try to run all of the tests together. We run our entire test fleet across over a dozen containers in CI.
493+
Additionally, we test the code by running it against various other example projects in CI. See CI badges and links at the top of this document.
494494
495495
If you're curious how we manage all of these tests in CI check out our [`circle.yml`](circle.yml) file found in the root `cypress` directory.
496496

README.md

Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
1-
<p align="center">
2-
<img src="https://cloud.githubusercontent.com/assets/1268976/20607953/d7ae489c-b24a-11e6-9cc4-91c6c74c5e88.png"/>
3-
</p>
4-
<p align="center">
5-
<a href="https://on.cypress.io">Documentation</a> |
6-
<a href="https://on.cypress.io/changelog">Changelog</a> |
7-
<a href="https://on.cypress.io/roadmap">Roadmap</a>
8-
</p>
9-
10-
<h3 align="center">
11-
The web has evolved. Finally, testing has too.
12-
</h3>
13-
14-
<p align="center">
15-
Fast, easy and reliable testing for anything that runs in a browser.
16-
</p>
17-
<p align="center">
18-
Join us, we're <a href="https://cypress.io/jobs">hiring</a>.
19-
</p>
20-
21-
<p align="center">
22-
<a href="https://www.npmjs.com/package/cypress">
23-
<img src="https://img.shields.io/npm/dm/cypress.svg" alt="npm"/>
24-
</a>
25-
<a href="https://gitter.im/cypress-io/cypress">
26-
<img src="https://img.shields.io/gitter/room/cypress-io/cypress.svg" alt="Gitter chat"/>
27-
</a>
28-
<a href="https://stackshare.io/cypress">
29-
<img src="https://img.stackshare.io/misc/follow-on-stackshare-badge.svg" alt="StackShare"/>
30-
</a><br />
31-
</p>
32-
33-
## What is Cypress?
34-
35-
<p align="center">
36-
<a href="https://player.vimeo.com/video/237527670">
37-
<img alt="Why Cypress Video" src="https://user-images.githubusercontent.com/1271364/31739717-dbdff0ee-b41c-11e7-9b16-bfa1b6ac1814.png" width="75%" height="75%" />
38-
</a>
39-
</p>
40-
41-
## Installing
42-
43-
[![npm version](https://badge.fury.io/js/cypress.svg)](https://badge.fury.io/js/cypress)
44-
45-
Install Cypress for Mac, Linux, or Windows, then [get started](https://docs.cypress.io/guides/getting-started/installing-cypress.html).
46-
47-
```bash
48-
npm install cypress --save-dev
49-
```
50-
or
51-
```bash
52-
yarn add cypress --dev
53-
```
54-
55-
![installing-cli e1693232](https://user-images.githubusercontent.com/1271364/31740846-7bf607f0-b420-11e7-855f-41c996040d31.gif)
56-
57-
58-
## Contributing
59-
60-
- [![CircleCI](https://circleci.com/gh/cypress-io/cypress/tree/develop.svg?style=svg)](https://circleci.com/gh/cypress-io/cypress/tree/develop) - `develop` branch
61-
- [![CircleCI](https://circleci.com/gh/cypress-io/cypress/tree/master.svg?style=svg)](https://circleci.com/gh/cypress-io/cypress/tree/master) - `master` branch
62-
63-
Please see our [Contributing Guideline](./CONTRIBUTING.md) which explains repo organization, linting, testing, and other steps.
64-
65-
## License
66-
67-
[![license](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/cypress-io/cypress/blob/master/LICENSE)
68-
69-
This project is licensed under the terms of the [MIT license](/LICENSE).
70-
71-
## Badges
72-
73-
Let the world know your project is using Cypress.io to test with this cool badge
74-
75-
[![Cypress.io](https://img.shields.io/badge/tested%20with-Cypress-04C38E.svg)](https://www.cypress.io/)
76-
77-
```
78-
[![Cypress.io](https://img.shields.io/badge/tested%20with-Cypress-04C38E.svg)](https://www.cypress.io/)
79-
```
1+
<p align="center">
2+
<a href="https://www.cypress.io"><img src="https://cloud.githubusercontent.com/assets/1268976/20607953/d7ae489c-b24a-11e6-9cc4-91c6c74c5e88.png"/></a>
3+
</p>
4+
<p align="center">
5+
<a href="https://on.cypress.io">Documentation</a> |
6+
<a href="https://on.cypress.io/changelog">Changelog</a> |
7+
<a href="https://on.cypress.io/roadmap">Roadmap</a>
8+
</p>
9+
10+
<h3 align="center">
11+
The web has evolved. Finally, testing has too.
12+
</h3>
13+
14+
<p align="center">
15+
Fast, easy and reliable testing for anything that runs in a browser.
16+
</p>
17+
<p align="center">
18+
Join us, we're <a href="https://cypress.io/jobs">hiring</a>.
19+
</p>
20+
21+
<p align="center">
22+
<a href="https://www.npmjs.com/package/cypress">
23+
<img src="https://img.shields.io/npm/dm/cypress.svg" alt="npm"/>
24+
</a>
25+
<a href="https://gitter.im/cypress-io/cypress">
26+
<img src="https://img.shields.io/gitter/room/cypress-io/cypress.svg" alt="Gitter chat"/>
27+
</a>
28+
<a href="https://stackshare.io/cypress">
29+
<img src="https://img.stackshare.io/misc/follow-on-stackshare-badge.svg" alt="StackShare"/>
30+
</a><br />
31+
</p>
32+
33+
## What is Cypress?
34+
35+
<p align="center">
36+
<a href="https://player.vimeo.com/video/237527670">
37+
<img alt="Why Cypress Video" src="https://user-images.githubusercontent.com/1271364/31739717-dbdff0ee-b41c-11e7-9b16-bfa1b6ac1814.png" width="75%" height="75%" />
38+
</a>
39+
</p>
40+
41+
## Installing
42+
43+
[![npm version](https://badge.fury.io/js/cypress.svg)](https://badge.fury.io/js/cypress)
44+
45+
Install Cypress for Mac, Linux, or Windows, then [get started](https://docs.cypress.io/guides/getting-started/installing-cypress.html).
46+
47+
```bash
48+
npm install cypress --save-dev
49+
```
50+
or
51+
```bash
52+
yarn add cypress --dev
53+
```
54+
55+
![installing-cli e1693232](https://user-images.githubusercontent.com/1271364/31740846-7bf607f0-b420-11e7-855f-41c996040d31.gif)
56+
57+
58+
## Contributing
59+
60+
- [![CircleCI](https://circleci.com/gh/cypress-io/cypress/tree/develop.svg?style=svg)](https://circleci.com/gh/cypress-io/cypress/tree/develop) - `develop` branch
61+
- [![CircleCI](https://circleci.com/gh/cypress-io/cypress/tree/master.svg?style=svg)](https://circleci.com/gh/cypress-io/cypress/tree/master) - `master` branch
62+
63+
Please see our [Contributing Guideline](./CONTRIBUTING.md) which explains repo organization, linting, testing, and other steps.
64+
65+
## License
66+
67+
[![license](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/cypress-io/cypress/blob/master/LICENSE)
68+
69+
This project is licensed under the terms of the [MIT license](/LICENSE).
70+
71+
## Badges
72+
73+
Let the world know your project is using Cypress.io to test with this cool badge
74+
75+
[![Cypress.io](https://img.shields.io/badge/tested%20with-Cypress-04C38E.svg)](https://www.cypress.io/)
76+
77+
```
78+
[![Cypress.io](https://img.shields.io/badge/tested%20with-Cypress-04C38E.svg)](https://www.cypress.io/)
79+
```

browser-versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"chrome:beta": "95.0.4638.40",
2+
"chrome:beta": "95.0.4638.54",
33
"chrome:stable": "94.0.4606.81"
44
}

0 commit comments

Comments
 (0)