ByTestId topic
getByTestId, queryByTestId, getAllByTestId, queryAllByTestId, findByTestId, findAllByTestId
Functions
-
findAllByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByTestId QueriesList< E> > -
Returns a list of elements with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
findByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?, Duration? timeout, Duration interval = defaultAsyncCallbackCheckInterval, QueryTimeoutFn? onTimeout, MutationObserverOptions mutationObserverOptions = defaultMutationObserverOptions}) → Future< Async ByTestId QueriesE> -
Returns a future with a single element value with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match after waiting 1000ms (or the providedtimeout
duration). -
getAllByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByTestId QueriesE> -
Returns a list of elements with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match. -
getByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E ByTestId Queries -
Returns a single element with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match. -
queryAllByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → List< ByTestId QueriesE> -
Returns a list of elements with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match. -
queryByTestId<
E extends Element> (Node container, dynamic testId, {bool exact = true, NormalizerFn normalizer([NormalizerOptions?])?}) → E? ByTestId Queries -
Returns a single element with the given
testId
value for thedata-test-id
attribute, defaulting to anexact
match.