e2ed
Version:
E2E testing framework over Playwright
14 lines (13 loc) • 566 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.resizeWindow = void 0;
const step_1 = require("../step");
const useContext_1 = require("../useContext");
/**
* Set the browser window size.
*/
const resizeWindow = (width, height) => (0, step_1.step)(`Set the browser window size to width ${width} and height ${height}`, async () => {
const page = (0, useContext_1.getPlaywrightPage)();
await page.setViewportSize({ height, width });
}, { type: 5 /* LogEventType.InternalAction */ });
exports.resizeWindow = resizeWindow;