The Radio form control allows for selection of one option from a group.

Usage

import { PlumaTestHelpers } from '@customerio/pluma-components/react/test-helpers/pluma-test-helpers'

const radio = PlumaTestHelpers.extract('Radio', screen.getByRole('radio', { name: 'Option A' }));

Test Helpers

Clicks the radio

Checks if the radio is checked

Checks if the radio is disabled

Gets the label text of the radio

Gets the name attribute of the radio

Gets the value attribute of the radio

Whether the radio checked state matches the expected state

On this page