Skip to content
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

Insert, Page Up and Page Down keys support in cy.type() #1567

Merged
merged 17 commits into from
Apr 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
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
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defaults: &defaults
docker:
# the Docker image with Cypress dependencies
# https://github.com/cypress-io/cypress-docker-images
- image: cypress/base:8
- image: cypress/base:8.15.1
environment:
<<: *env_defaults

Expand Down
692 changes: 359 additions & 333 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"bin-up": "1.1.0",
"chai": "4.2.0",
"chalk": "2.4.2",
"cheerio": "1.0.0-rc.2",
"cheerio": "1.0.0-rc.3",
"coffee-react": "5.0.1",
"colors": "1.3.3",
"common-tags": "1.8.0",
Expand All @@ -87,7 +87,7 @@
"fluent-ffmpeg": "2.1.2",
"fs-extra": "7.0.1",
"ggit": "2.4.11",
"git-last": "1.2.10",
"git-last": "1.2.11",
"got": "9.6.0",
"gulp": "4.0.0",
"gulp-awspublish": "4.0.0",
Expand All @@ -97,21 +97,21 @@
"human-interval": "0.1.6",
"husky": "1.3.1",
"inquirer": "6.2.2",
"jest": "24.6.0",
"jest": "24.7.1",
"keyv": "3.1.0",
"marked": "0.6.1",
"marked": "0.6.2",
"minimist": "1.2.0",
"nock": "10.0.6",
"npm-run-all": "4.1.5",
"ora": "3.1.0",
"ora": "3.4.0",
"pluralize": "7.0.0",
"prompt-confirm": "2.0.4",
"ramda": "0.26.1",
"request-promise": "4.2.4",
"sinon": "7.3.1",
"sinon-chai": "3.3.0",
"snap-shot-it": "6.3.2",
"start-server-and-test": "1.7.12",
"start-server-and-test": "1.7.13",
"stop-only": "3.0.1",
"textlint": "11.2.3",
"textlint-filter-rule-comments": "1.2.2",
Expand All @@ -122,7 +122,7 @@
"yamljs": "0.3.0"
},
"dependencies": {
"bluebird": "3.5.3",
"bluebird": "3.5.4",
"check-more-types": "2.24.0",
"debug": "4.1.1",
"docsearch.js": "2.6.2",
Expand Down
83 changes: 81 additions & 2 deletions source/_data/blogs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,54 @@ small:

# large links with thumbnails, links, embedded video
large:
- title: "Testing an email workflow from end to end with Cypress"
url: https://humble.dev/testing-an-email-workflow-from-end-to-end-with-cypress
sourceName: humbledev
sourceUrl: https://humble.dev/
author: Maxime Khoy
date: Mar 6, 2019
img: /img/examples/testing-email-workflow-with-cypress.png

- title: "Configuring Cypress in CI with Azure DevOps Pipelines"
url: https://mariocardinal.wordpress.com/2019/03/05/configuring-cypress-in-ci-with-azure-devops-pipelines/
sourceName: Mario Cardinal
sourceUrl: https://mariocardinal.wordpress.com/
author: Mario Cardinal
date: Mar 5, 2019
img: /img/examples/ci-with-azure-devops.png

- title: "How to poll a Gmail inbox using cypress.io"
url: https://medium.com/@levz0r/how-to-poll-a-gmail-inbox-in-cypress-io-a4286cfdb888
sourceName: Medium
sourceUrl: https://medium.com/@levz0r
author: Lev Gelfenbuim
date: Mar 4, 2019
img: /img/examples/poll-gmail-inbox-in-cypress.png

- title: "Angular: Adding Cypress UI Tests to Your DevOps Pipeline"
url: https://medium.com/ngconf/angular-adding-cypress-ui-tests-to-your-devops-pipeline-c7613e67d37d
sourceName: Medium
sourceUrl: https://medium.com/ngconf
author: Justin James
date: Feb 20, 2019
img: /img/examples/angular-adding-cypress-ui-testing.png

- title: "Running Cypress Tests in Parallel"
url: https://testdriven.io/blog/running-cypress-tests-in-parallel/
sourceName: TestDriven
sourceUrl: https://testdriven.io/
author: Michael Herman
date: Feb 19, 2019
img: /img/examples/running-cypress-tests-in-parallel.png

- title: "I saw Jesse Sanders speak at AngularMN on Cypress testing on Wednesday night"
url: http://tom-jaeschke.blogspot.com/2019/02/i-saw-jesse-sanders-speak-at-angularmn.html
sourceName: Spaghetti Tom
sourceUrl: http://tom-jaeschke.blogspot.com/
author: Tom Jaeschke
date: Feb 10, 2019
img: /img/examples/jesse-sanders-at-angularmn-on-cypress.png

- title: "I'm so done with E2E Testing....Until Now"
url: http://briebug.github.io/presentations/ng-meetup/2018/10/cypress/#/
sourceName: Briebug
Expand All @@ -16,6 +64,22 @@ large:
date: Feb 7, 2019
img: /img/examples/Im-so-done.jpg

- title: "Modern Front-End Testing with Cypress"
url: https://testdriven.io/blog/modern-frontend-testing-with-cypress/
sourceName: TestDriven
sourceUrl: https://testdriven.io/
author: Michael Herman
date: Jan 31, 2019
img: /img/examples/modern-front-end-testing-with-cypress.png

- title: "Tendências para a área de Quality Assurance em 2019"
url: https://medium.com/invillia-insights/tend%C3%AAncias-para-a-%C3%A1rea-de-quality-assurance-em-2019-51c61b36e955
sourceName: Medium
sourceUrl: https://medium.com/invillia-insights
author: Thiago Grespi
date: Jan 30, 2019
img: /img/examples/tendencias-quality-assurance.png

- title: "Cypress com Cucumber nos testes E2E"
url: https://www.concrete.com.br/2019/01/24/cypress-com-cucumber-nos-testes-e2e/
sourceName: Concrete
Expand Down Expand Up @@ -48,6 +112,14 @@ large:
date: Jan 18, 2019
img: /img/examples/what-i-learned-cypress-3-weeks.jpg

- title: "Integrating Cypress.io into Solar Monkey's codebase"
url: http://engineering.solarmonkey.nl/blog/integrating-cypress-into-solar-monkey/
sourceName: Solar Monkey Engineering
sourceUrl: http://engineering.solarmonkey.nl/
author: Solar Monkey Engineering
date: Jan 18, 2019
img: /img/examples/cypress-into-solar-monkey-codebase.png

- title: "Introducción a la automatización de tests E2E con Cypress.io"
url: https://blog.irontec.com/introduccion-automatizacion-tests-e2e-cypress-io/
sourceName: irontec
Expand Down Expand Up @@ -352,8 +424,7 @@ large:
author: Fabian Gosebrink
img: /img/examples/e2e-with-angular-and-cypress.jpg

- title: "Testing React Apps with Cypress:
A brief guide on how to run End-To-End testing on React apps with Cypress."
- title: "Testing React Apps with Cypress: A brief guide on how to run End-To-End testing on React apps with Cypress."
url: https://blog.bitsrc.io/testing-react-apps-with-cypress-658bc482678
sourceName: Bits and Pieces
sourceUrl: https://blog.bitsrc.io/
Expand Down Expand Up @@ -727,6 +798,14 @@ large:
author: Kamil Ogórek
img: /img/examples/corgibytes-cypress-browser-tests-graph.jpg

- title: "The Right Way to Test React Components"
url: https://medium.freecodecamp.org/the-right-way-to-test-react-components-548a4736ab22
sourceName: freeCodeCamp
sourceUrl: https://medium.freecodecamp.org/
author: Lily Scott
date: Feb 4, 2017
img: /img/examples/right-way-to-test-react-components.png

- title: Cypress will change the way you develop
url: https://hackernoon.com/cypress-will-change-the-way-you-develop-47a194d2a33f
sourceName: Hackernoon
Expand Down
9 changes: 9 additions & 0 deletions source/_data/screencasts.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# large links with thumbnails, links, embedded video
large:
- title: "How to write tests for your Gatsby sites and apps"
url: https://www.youtube.com/watch?v=BzRAYt7BHRw
sourceName: Youtube
sourceUrl: https://www.twitch.tv/jlengstorf
date: Mar 7, 2019
author: Jason Lengstorf & Kent C. Dodds
youtubeId: BzRAYt7BHRw
slides: https://github.com/kentcdodds/kentcdodds.com/pull/88

- title: "My Cypress Workflow"
url: https://www.youtube.com/watch?v=vBZaDqMmDH0
sourceName: YouTube
Expand Down
36 changes: 36 additions & 0 deletions source/_data/talks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# large links with thumbnails, links, embedded video
large:
- title: 'Cypress: testing without Selenium, part 1'
url: https://www.youtube.com/watch?v=hk4qtXgL12k
sourceName: Selenium Camp
sourceUrl: https://seleniumcamp.com
date: Mar 11, 2019
author: Gleb Bahmutov
youtubeId: hk4qtXgL12k
slides: https://seleniumcamp.com/talk/cypress-testing-without-selenium/

- title: 'Building Web Apps with Hyperapp'
url: https://www.youtube.com/watch?v=8pcx0XitUCc
sourceName: NERD Summit
sourceUrl: https://nerd.ngo/
date: Mar 10, 2019
author: Gleb Bahmutov
youtubeId: 8pcx0XitUCc
slides: https://slides.com/bahmutov/hyperapp-intro#/

- title: 'Less painful E2E tests with Cypress.io'
url: https://fosdem.org/2019/schedule/event/e2e_tests_cypress/
sourceName: FOSDEM 2019
sourceUrl: https://fosdem.org/2019/schedule/event/keynotes_welcome/
date: Feb 3, 2019
author: Pavel Kruhlei
slides: https://fosdem.org/2019/schedule/event/e2e_tests_cypress/attachments/slides/3010/export/events/attachments/e2e_tests_cypress/slides/3010/Slides.pdf
img: /img/examples/painless-e2e-with-cypress.png

- title: 'There and Back Again: e2e Testing React with Cypress'
url: https://www.youtube.com/watch?v=I3WJhutZovw
sourceName: Grow IT Conf
Expand Down Expand Up @@ -36,6 +63,15 @@ large:
img: /img/examples/well-tested-software.jpg
slides: https://slides.com/bahmutov/well-tested-software

- title: 'Automated testing for the modern web'
url: https://www.youtube.com/watch?v=ggJ1-ChxHrQ
sourceName: JSConf Colombia
sourceUrl: https://jsconf.co/
date: Nov 17, 2018
author: Jennifer Shehane
youtubeId: ggJ1-ChxHrQ
slides: https://speakerdeck.com/jennifershehane/automated-testing-for-the-modern-web

- title: Next Generation Web Application End to End Testing
url: https://youtu.be/CkGQ0fFH3yE
sourceName: Devoxx Belgium
Expand Down
3 changes: 3 additions & 0 deletions source/api/commands/type.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Sequence | Notes
--- | ---
`{% raw %}{{{% endraw %}}`| Types the literal `{` key
`{backspace}` | Deletes character to the left of the cursor
`{insert}` | Inserts character to the right of the cursor
`{del}` | Deletes character to the right of the cursor
`{downarrow}` | Moves cursor down
`{enter}` | Types the Enter key
Expand All @@ -48,6 +49,8 @@ Sequence | Notes
`{uparrow}` | Moves cursor up
`{home}` | Moves cursor to the start of the line
`{end}` | Moves cursor to the end of the line
`{pageup}` | Scrolls up
`{pagedown}` | Scrolls down

Text passed to `.type()` may also include any of these modifier character sequences:

Expand Down
2 changes: 2 additions & 0 deletions source/examples/examples/recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ Get around the lack of a `.hover()` command.

- Use {% url "`.trigger()`" trigger %} to test drag-n-drop that uses mouse events.
- Use {% url "`.trigger()`" trigger %} to test drag-n-drop that uses drag events.
- Use {% url "`cypress-file-upload`" https://github.com/abramenal/cypress-file-upload %} to test drag-n-drop that works with file uploads.

## [TypeScript with Browserify](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/preprocessors__typescript-browserify)

Expand Down Expand Up @@ -187,6 +188,7 @@ Get around the lack of a `.hover()` command.
- Passing synthetic test file to upload via an {% url "`.trigger('change')`" trigger %} event
- Stub remote server using {% url "`cy.route()`" route %}
- Alternatively stub `axios.post` method using {% url "`cy.stub()`" stub %}
- Alternatively, use {% url "`cypress-file-upload`" https://github.com/abramenal/cypress-file-upload %} to test file upload

## [Adding Chai Assertions](https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/extending-cypress__chai-assertions)

Expand Down
2 changes: 1 addition & 1 deletion source/guides/core-concepts/dashboard-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ By default, every user of Cypress is given a personal organization - named after

### Inviting users

You can invite users to Cypress from the {% url 'Dashboard Service' https://on.cypress.io/dashboard %}. Invited users will see all projects and tests run for the organization.
A user is anyone who logs in to the Dashboard Service. You can invite users to Cypress from the {% url 'Dashboard Service' https://on.cypress.io/dashboard %}. Invited users will see all projects and tests run for the organization.

**To invite a user to an organization:**

Expand Down
4 changes: 3 additions & 1 deletion source/guides/guides/command-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Typically, this is defined as an environment variable within your CI provider, d
cypress run --ci-build-id BUILD_NUMBER
```

Read our {% url "parallelization" parallelization %} documentation to learn more.
Only valid when providing a `--group` or `--parallel` flag. Read our {% url "parallelization" parallelization %} documentation to learn more.

### `cypress run --config <config>`

Expand Down Expand Up @@ -172,6 +172,8 @@ cypress run --group admin-tests --spec 'cypress/integration/admin/**/*
cypress run --group user-tests --spec 'cypress/integration/user/**/*
```

Specifying the `--ci-build-id` may also be necessary.

{% url "Read more about grouping." parallelization#Grouping-test-runs %}

### `cypress run --headed`
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/img/examples/ci-with-azure-devops.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.