playwright-fluent
Version:
Fluent API around playwright
15 lines (14 loc) • 598 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const SUT = tslib_1.__importStar(require("../index"));
describe('hold down key', () => {
test('should return an error when browser has not been launched', async () => {
// Given
const page = undefined;
// When
// Then
const expectedError = new Error("Cannot hold down key 'Control' because no browser has been launched");
await SUT.holdDownKey('Control', page).catch((error) => expect(error).toMatchObject(expectedError));
});
});
;