#cy.userZoomingEnabled()
// Check whether user zooming is enabled
cy.userZoomingEnabled(): booleanRead whether the user may zoom by wheel or pinch. Programmatic zoom() is unaffected.
Returns
booleanthe current userZoomingEnabled value
#cy.userZoomingEnabled(bool)
// Enable or disable user zooming
cy.userZoomingEnabled(bool: boolean): thisSet whether the user may zoom by wheel or pinch. Programmatic zoom() is unaffected.
| Name | Description |
|---|---|
bool: boolean | the new setting |
Returns
thisthis core, for chaining
Example
const result = cy.userZoomingEnabled(true);console.log(result === cy); // true