UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

17 lines (16 loc) 626 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.rsSelect = void 0; const test_1 = require("@storybook/test"); /** * Wrapper to select an option in a react-select component * * @param canvas - The canvas where the input is present. * @param input - The input element associated with the react-select component. * @param optionOrOptions - The option or options to select. */ const rsSelect = async (canvas, input, optionOrOptions) => { await test_1.userEvent.click(input); await test_1.userEvent.click(await canvas.findByText(optionOrOptions)); }; exports.rsSelect = rsSelect;