mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-13 02:40:22 -05:00
docs: missing parenths
This commit is contained in:
@@ -152,7 +152,7 @@ cy.get('button').trigger('mousemove', {clientX: 200, clientY: 300})
|
||||
|
||||
***What event should I fire?***
|
||||
|
||||
`cy.trigger` is meant to be a low-level utility that makes triggering events easier than manually constructing and dispatching them. Since any arbitrary event can be triggered, Cypress tries not to make any assumptions about how it should be triggered. This means you'll need to know the implementation details (which may be in a 3rd party library) of the event handler(s) receiving the event and provide the necessary properties.
|
||||
`cy.trigger()` is meant to be a low-level utility that makes triggering events easier than manually constructing and dispatching them. Since any arbitrary event can be triggered, Cypress tries not to make any assumptions about how it should be triggered. This means you'll need to know the implementation details (which may be in a 3rd party library) of the event handler(s) receiving the event and provide the necessary properties.
|
||||
|
||||
## Differences
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ Option | Default | Description
|
||||
|
||||
## Command
|
||||
|
||||
`cy.exec` provides an escape hatch for running arbitrary system commands, so you can take actions necessary for your test outside the scope of Cypress. This is great for:
|
||||
`cy.exec()` provides an escape hatch for running arbitrary system commands, so you can take actions necessary for your test outside the scope of Cypress. This is great for:
|
||||
|
||||
- Running build scripts
|
||||
- Seeding your test database
|
||||
|
||||
@@ -3,7 +3,7 @@ title: route
|
||||
comments: false
|
||||
---
|
||||
|
||||
Use `cy.route` to manage the behavior of network requests.
|
||||
Use `cy.route()` to manage the behavior of network requests.
|
||||
|
||||
{% note info %}
|
||||
**Note:** `cy.route()` assumes you are already familiar with core concepts such as {% url 'network requests' network-requests %}
|
||||
|
||||
@@ -81,7 +81,7 @@ cy.visit('http://localhost:3000/#dashboard', {
|
||||
***Using onBeforeLoad***
|
||||
|
||||
{% note info %}
|
||||
Check out our example recipes using `cy.visit`'s `onBeforeLoad` option to:
|
||||
Check out our example recipes using `cy.visit()`'s `onBeforeLoad` option to:
|
||||
- {% url 'Bootstrap app data' working-with-the-backend %}
|
||||
- {% url 'Set a token to `localStorage` for login' logging-in %}
|
||||
- {% url 'Stub `window.fetch`' stubs-spies-and-clocks-recipe %}
|
||||
|
||||
Reference in New Issue
Block a user