Base text component for applying typographic styles.
import { PlumaTestHelpers } from '@customerio/pluma-components/react/test-helpers/pluma-test-helpers' const text = PlumaTestHelpers.extract('Text', screen.getByTestId('data-test-text'));
TextTestHelpers
getColor
=> string | undefined
Gets the text color
getSize
Gets the font size
getText
=> string
Gets the text content
isText
text:
string
=> boolean
Whether the text content matches the expected text