Module

Storybook.TestingLibrary.Types

Package
purescript-react-basic-storybook
Repository
rowtype-yoga/purescript-react-basic-storybook

#CanvasElement Source

#RenderQueriesJS Source

type RenderQueriesJS = { findAllByAltText :: Fn1 Foreign (Promise (Array HTMLElement)), findAllByDisplayValue :: Fn1 Foreign (Promise (Array HTMLElement)), findAllByLabelText :: Fn1 Foreign (Promise (Array HTMLElement)), findAllByPlaceholderText :: Fn1 Foreign (Promise (Array HTMLElement)), findAllByRole :: Fn1 Foreign (Promise (Array HTMLElement)), findAllByTestId :: Fn1 Foreign (Promise (Array HTMLElement)), findAllByText :: Fn1 Foreign (Promise (Array HTMLElement)), findAllByTitle :: Fn1 Foreign (Promise (Array HTMLElement)), findByAltText :: Fn1 Foreign (Promise HTMLElement), findByDisplayValue :: Fn1 Foreign (Promise HTMLElement), findByLabelText :: Fn1 Foreign (Promise HTMLElement), findByPlaceholderText :: Fn1 Foreign (Promise HTMLElement), findByRole :: Fn1 Foreign (Promise HTMLElement), findByTestId :: Fn1 Foreign (Promise HTMLElement), findByText :: Fn1 Foreign (Promise HTMLElement), findByTitle :: Fn1 Foreign (Promise HTMLElement), queryAllByAltText :: Fn1 Foreign (Array HTMLElement), queryAllByDisplayValue :: Fn1 Foreign (Array HTMLElement), queryAllByLabelText :: Fn1 Foreign (Array HTMLElement), queryAllByPlaceholderText :: Fn1 Foreign (Array HTMLElement), queryAllByRole :: Fn1 Foreign (Array HTMLElement), queryAllByTestId :: Fn1 Foreign (Array HTMLElement), queryAllByText :: Fn1 Foreign (Array HTMLElement), queryAllByTitle :: Fn1 Foreign (Array HTMLElement), queryByAltText :: Fn1 Foreign HTMLElement, queryByDisplayValue :: Fn1 Foreign HTMLElement, queryByLabelText :: Fn1 Foreign HTMLElement, queryByPlaceholderText :: Fn1 Foreign HTMLElement, queryByRole :: Fn1 Foreign HTMLElement, queryByTestId :: Fn1 Foreign HTMLElement, queryByText :: Fn1 Foreign HTMLElement, queryByTitle :: Fn1 Foreign HTMLElement, rerender :: EffectFn1 JSX Unit }

#RenderQueries Source

type RenderQueries = { findAllByAltText :: forall tm. TextMatch tm => tm -> Aff (Array HTMLElement), findAllByDisplayValue :: forall tm. TextMatch tm => tm -> Aff (Array HTMLElement), findAllByLabelText :: forall tm. TextMatch tm => tm -> Aff (Array HTMLElement), findAllByPlaceholderText :: forall tm. TextMatch tm => tm -> Aff (Array HTMLElement), findAllByRole :: forall tm. TextMatch tm => tm -> Aff (Array HTMLElement), findAllByTestId :: forall tm. TextMatch tm => tm -> Aff (Array HTMLElement), findAllByText :: forall tm. TextMatch tm => tm -> Aff (Array HTMLElement), findAllByTitle :: forall tm. TextMatch tm => tm -> Aff (Array HTMLElement), findByAltText :: forall tm. TextMatch tm => tm -> Aff HTMLElement, findByDisplayValue :: forall tm. TextMatch tm => tm -> Aff HTMLElement, findByLabelText :: forall tm. TextMatch tm => tm -> Aff HTMLElement, findByPlaceholderText :: forall tm. TextMatch tm => tm -> Aff HTMLElement, findByRole :: forall tm. TextMatch tm => tm -> Aff HTMLElement, findByTestId :: forall tm. TextMatch tm => tm -> Aff HTMLElement, findByText :: forall tm. TextMatch tm => tm -> Aff HTMLElement, findByTitle :: forall tm. TextMatch tm => tm -> Aff HTMLElement, queryAllByAltText :: forall tm. TextMatch tm => tm -> Maybe (Array HTMLElement), queryAllByDisplayValue :: forall tm. TextMatch tm => tm -> Maybe (Array HTMLElement), queryAllByLabelText :: forall tm. TextMatch tm => tm -> Maybe (Array HTMLElement), queryAllByPlaceholderText :: forall tm. TextMatch tm => tm -> Maybe (Array HTMLElement), queryAllByRole :: forall tm. TextMatch tm => tm -> Maybe (Array HTMLElement), queryAllByTestId :: forall tm. TextMatch tm => tm -> Maybe (Array HTMLElement), queryAllByText :: forall tm. TextMatch tm => tm -> Maybe (Array HTMLElement), queryAllByTitle :: forall tm. TextMatch tm => tm -> Maybe (Array HTMLElement), queryByAltText :: forall tm. TextMatch tm => tm -> Maybe HTMLElement, queryByDisplayValue :: forall tm. TextMatch tm => tm -> Maybe HTMLElement, queryByLabelText :: forall tm. TextMatch tm => tm -> Maybe HTMLElement, queryByPlaceholderText :: forall tm. TextMatch tm => tm -> Maybe HTMLElement, queryByRole :: forall tm. TextMatch tm => tm -> Maybe HTMLElement, queryByTestId :: forall tm. TextMatch tm => tm -> Maybe HTMLElement, queryByText :: forall tm. TextMatch tm => tm -> Maybe HTMLElement, queryByTitle :: forall tm. TextMatch tm => tm -> Maybe HTMLElement, rerender :: forall m. MonadEffect m => JSX -> m Unit }

#TextMatch Source

class TextMatch :: forall k. k -> Constraintclass TextMatch a 

To be used for most of the getBy/findBy etc functions

Instances