#cy.zoomingEnabled()
// Check whether zooming is enabled
cy.zoomingEnabled(): booleanRead whether zooming is allowed at all — programmatic zoom() included. Use userZoomingEnabled() to block only the gesture.
Returns
booleanthe current zoomingEnabled value
#cy.zoomingEnabled(bool)
// Enable or disable zooming
cy.zoomingEnabled(bool: boolean): thisSet whether zooming is allowed at all — programmatic zoom() included. Use userZoomingEnabled() to block only the gesture.
| Name | Description |
|---|---|
bool: boolean | the new setting |
Returns
thisthis core, for chaining
Example
const result = cy.zoomingEnabled(true);console.log(result === cy); // true