// Set both zoom bounds; accepts (min, max) or { min, max }
cy.zoomRange(min: number | { min?: number; max?: number }, max?: number): thisSet both zoom bounds; accepts (min, max) or { min, max }.
| Name | Description |
|---|---|
min: number | { min?: number; max?: number } | the minimum zoom, or an object carrying both bounds |
max: number? | the maximum zoom, when |
Fields of min
| Name | Description |
|---|---|
min: number? | |
max: number? |
Returns
thisthis core, for chaining
Example
cy.zoomRange(0.5, 4);console.log([cy.minZoom(), cy.maxZoom()]); // [0.5, 4]