Socket
Socket
Sign inDemoInstall

@web/test-runner-commands

Package Overview
Dependencies
190
Maintainers
7
Versions
59
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.0 to 0.8.1

18

browser/commands.d.ts

@@ -11,2 +11,3 @@ import {

SaveSnapshotPayload,
SelectOptionPayload,
SendMousePayload,

@@ -140,2 +141,19 @@ } from '../dist/index';

/**
* Selects an option in a <select> element by value or label
*
* @example
* ```
* it('natively selects an option by value', async () => {
* const valueToSelect = 'first';
* const select = document.querySelector('#testSelect');
*
* await selectOption({ selector: '#testSelect', value: valueToSelect });
*
* expect(select.value).to.equal(valueToSelect);
*});
*```
*/
export function selectOption(payload: SelectOptionPayload): Promise<void>;
/**
* Resets the mouse position to (0, 0) and releases mouse buttons.

@@ -142,0 +160,0 @@ *

1

dist/index.d.ts
export { Viewport, setViewportPlugin } from './setViewportPlugin';
export { Media, emulateMediaPlugin } from './emulateMediaPlugin';
export { selectOptionPlugin, SelectOptionPayload } from './selectOptionPlugin';
export { setUserAgentPlugin } from './setUserAgentPlugin';

@@ -4,0 +5,0 @@ export { sendKeysPlugin, SendKeysPayload } from './sendKeysPlugin';

4

dist/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.snapshotPlugin = exports.filePlugin = exports.a11ySnapshotPlugin = exports.sendMousePlugin = exports.sendKeysPlugin = exports.setUserAgentPlugin = exports.emulateMediaPlugin = exports.setViewportPlugin = void 0;
exports.snapshotPlugin = exports.filePlugin = exports.a11ySnapshotPlugin = exports.sendMousePlugin = exports.sendKeysPlugin = exports.setUserAgentPlugin = exports.selectOptionPlugin = exports.emulateMediaPlugin = exports.setViewportPlugin = void 0;
var setViewportPlugin_1 = require("./setViewportPlugin");

@@ -8,2 +8,4 @@ Object.defineProperty(exports, "setViewportPlugin", { enumerable: true, get: function () { return setViewportPlugin_1.setViewportPlugin; } });

Object.defineProperty(exports, "emulateMediaPlugin", { enumerable: true, get: function () { return emulateMediaPlugin_1.emulateMediaPlugin; } });
var selectOptionPlugin_1 = require("./selectOptionPlugin");
Object.defineProperty(exports, "selectOptionPlugin", { enumerable: true, get: function () { return selectOptionPlugin_1.selectOptionPlugin; } });
var setUserAgentPlugin_1 = require("./setUserAgentPlugin");

@@ -10,0 +12,0 @@ Object.defineProperty(exports, "setUserAgentPlugin", { enumerable: true, get: function () { return setUserAgentPlugin_1.setUserAgentPlugin; } });

{
"name": "@web/test-runner-commands",
"version": "0.8.0",
"version": "0.8.1",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

export { Viewport, setViewportPlugin } from './setViewportPlugin';
export { Media, emulateMediaPlugin } from './emulateMediaPlugin';
export { selectOptionPlugin, SelectOptionPayload } from './selectOptionPlugin';
export { setUserAgentPlugin } from './setUserAgentPlugin';

@@ -4,0 +5,0 @@ export { sendKeysPlugin, SendKeysPayload } from './sendKeysPlugin';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc