@web/test-runner-commands
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -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 @@ * |
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'; |
"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
123160
2237