Skip to content

Increases max viewport from 3000 to 4000 px #2099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
8310302
Develop (#1923)
jennifer-shehane Jul 30, 2019
b340c89
Develop (#1928)
jennifer-shehane Aug 2, 2019
0f3569d
Develop (#1953)
jennifer-shehane Aug 5, 2019
5878c2d
Develop (#1964)
jennifer-shehane Aug 6, 2019
fe3c3ca
Develop (#1983)
bahmutov Aug 8, 2019
926eed4
Develop (#1992)
jennifer-shehane Aug 13, 2019
7093cb5
Develop (#2011)
jennifer-shehane Aug 15, 2019
be8f9a1
Merge pull request #2026 from cypress-io/develop
amirrustam Aug 21, 2019
9e160ad
Merge pull request #2037 from cypress-io/develop
amirrustam Aug 23, 2019
651d69d
Fix typo in the cross-origin error section (#2033)
mariusbutuc Aug 23, 2019
331e397
chore(deps): Update dependency @types/jest to version 24.0.18 🌟 (#2029)
renovate[bot] Aug 26, 2019
0b1ce89
add section explaining how to patch Cypress CLI module (#2045)
bahmutov Aug 27, 2019
b8023e9
Develop (#2046)
jennifer-shehane Aug 27, 2019
05c61a3
update error message about stale runs to be more clear
jennifer-shehane Aug 30, 2019
babaa43
Add instructions on how to uninstall Cypress GitHub app
jennifer-shehane Sep 5, 2019
e910dbf
Merge branch 'master' into develop
jennifer-shehane Sep 5, 2019
5cad54b
Add links (#2058)
bahmutov Sep 5, 2019
b3dca03
docs - add missing param (#2061)
qaiken Sep 9, 2019
2938821
Issue-2038 (#2048)
TonySynenko Sep 9, 2019
c004684
add jsconfig section (#2054)
bahmutov Sep 9, 2019
3e8fa6c
Update writing-your-first-test.md (#2043)
kukiiu Sep 9, 2019
9f2ff9b
chore(deps): Update dependency git-last to version 1.2.12 🌟 (#2000)
renovate[bot] Sep 9, 2019
99f5473
chore(deps): Update dependency sinon to version 7.4.2 🌟 (#2052)
renovate[bot] Sep 9, 2019
0a9f01a
try using v2.1 of Circle
bahmutov Sep 11, 2019
12a6a27
testing trigger by commit
bahmutov Sep 11, 2019
548c15b
trigger workflow using empty GitHub commit, close #2069 (#2070)
bahmutov Sep 11, 2019
31e7767
Add support to pt-br (#2065)
Sep 12, 2019
bc3070d
add test automation u course (#2075)
bahmutov Sep 13, 2019
6936c2f
Add cypress-rails mention (#2079)
searls Sep 17, 2019
74f501c
issue 2071 (#2072)
TonySynenko Sep 17, 2019
a65e2d5
chore(deps): Update dependency start-server-and-test to version… (#2078)
renovate[bot] Sep 17, 2019
3345d77
Update for new nav (#2076)
mapsandapps Sep 17, 2019
8447003
Answer how to champion cypress (#2056)
bahmutov Sep 17, 2019
0deb76a
add cypress-fiddle link and blurb (#2060)
bahmutov Sep 17, 2019
07d1169
wrong podcast link, close #2074 (#2080)
prinkov Sep 17, 2019
d3a0a6b
fix(deps): Update dependency hexo-server to version 1.0.0 🌟 (#2053)
renovate[bot] Sep 18, 2019
d560f91
change open to run (#2083)
Sep 18, 2019
a8d4408
Remove url that was breaking the groups section shell code
jennifer-shehane Sep 18, 2019
95ea1a5
Remove url that was breaking the groups section shell code (#2085)
jennifer-shehane Sep 18, 2019
f2b421a
fix(deps): Update dependency contentful to version 7.10.0 🌟 (#2087)
renovate[bot] Sep 19, 2019
2b14e7a
add vscode extension (#2088)
Sep 19, 2019
a41de2d
describe solution to xvfb problem (#2090)
bahmutov Sep 20, 2019
47583ac
add links to native code coverage example and backend cove… (#1788)
bahmutov Sep 20, 2019
2f7063d
increases max viewport from 3000 to 4000 px
nico-bellante Sep 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add section explaining how to patch Cypress CLI module (#2045)
* add section explaining how to patch Cypress CLI module

* md lint

* Reduce a lot of noise in the patch instructions

- It’s a lot, a lot of assumptions on how much people know about how
Cypress works and a lot of info specific to the Windows pipe patch that
I think will just lead to misdirection.
  • Loading branch information
bahmutov authored Aug 27, 2019
commit 0b1ce89bc1be59a00893337fefec2b2ce5e6a8b9
46 changes: 45 additions & 1 deletion source/guides/guides/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@ If you'd like to contribute directly to the Cypress code, we'd love to have your

## Run the Cypress app by itself

Cypress comes with an npm CLI module that parses the arguments, starts the Xvfb server (if necessary), and then opens the Test Runner application built on top of {% url "Electron" https://electronjs.org/ %}. Some common situations on why you would want to do this are:
Cypress comes with an npm CLI module that parses the arguments, starts the Xvfb server (if necessary), and then opens the Test Runner application built on top of {% url "Electron" https://electronjs.org/ %}.

Some common situations on why you would want to run the Cypress app by itself are to:

- debug Cypress not starting or hanging
- debug problems related to the way CLI arguments are parsed by the npm CLI module
Expand Down Expand Up @@ -391,6 +393,48 @@ cypress:server:cypress starting in mode smokeTest +356ms
cypress:server:cypress about to exit with code 0 +4ms
```

## Patch Cypress

Cypress comes with an npm CLI module that parses the arguments, starts the Xvfb server (if necessary), and then opens the Test Runner application built on top of {% url "Electron" https://electronjs.org/ %}.

If you're encountering a bug in the current version of Cypress, you can implementing a temporary fix by patching Cypress in your own project. Here is an example of how to do this.

1. Install {% url "patch-package" https://github.com/ds300/patch-package %}.
2. Add a patch step to your CI configuration after installing your npm packages.

```yaml
- run: npm ci
- run: npx patch-package
```

Alternatively, you can apply the patch during a post-install phase. In your `package.json`, for example, you could add the following:

```json
{
"scripts": {
"postinstall": "patch-package"
}
}
```

3. Edit the line causing the problem *in your local node_modules folder* within `node_modules/cypress`.
4. Run the `npx patch-package cypress` command. This command will create a new file `patches/cypress+3.4.1.patch`.

```shell
npx patch-package cypress
patch-package 6.1.2
• Creating temporary folder
• Installing cypress@3.4.1 with npm
• Diffing your files with clean files
✔ Created file patches/cypress+3.4.1.patch
```

5. Commit the new `patches` folder to git.

{% note info %}
If you find a patch for an error, please add a comment explaining your workaround to the relevant Cypress GitHub issue. It will help us release an official fix faster.
{% endnote %}

## Edit the installed Cypress code

The installed Test Runner comes with the fully transpiled, unobfuscated JavaScript source code that you can hack on. You might want to directly modify the installed Test Runner code to:
Expand Down