menu

Testing Library

Simple and complete DOM testing utilities that encourage good testing practices.

Channels
Chat
view-forward
# All channels
view-forward
# General
view-forward
# General Help
view-forward
# Angular Help
view-forward
# Cypress Help
view-forward
# DOM Help
view-forward
# React Help
view-forward
# TestCafe Help
view-forward
# Vue Help
view-forward
Team
Posts
Members
Info

When to use integration tests over e2e tests?

Hey! Yesterday I tested a feature which required me to mount multiple components and link them via a store and router (in vue). The setup was quite complex and there was a problem with the router which did not call the in-component guards. So I had to manually simulate these…

thumbsup
0
message-simple
7

Ask Me Anything about Testing

Hey folks! Do you have any questions about testing? I'm hosting a livestream tomorrow! I'd love for as many of you to be there asking questions as you can. Learn more about the livestream and feel free to start asking on this twitter…

thumbsup
0
message-simple
10

Anyone wrote test case for a component which is using format-string or…

I am using numeral JS for currency component but don't know how to write test to expect the formatted value. This is what I am trying but I get error Expected: "100.00" …

thumbsup
0
message-simple
2

fireEvent.change - don't know how to change text of textarea

It does not work, i tried with {target: {text: 'abcdef'}} as well. Can someone help, how to set value/text in textarea?

thumbsup
0
message-simple
1

Test thrown error in async fetching

Hey all, I am trying to write a test on a React component where I want to check if an error was thrown in an async operation during rendering a functional component (for example something like this: https://codesandbox.io/embed/dazzling-yalow-xsi16) Where I am struggling now is…

thumbsup
0
message-simple
3

I want to speed up the test runner

Example: I want to cache render for test cases but I have not solution

thumbsup
0
message-simple
5

Any downsides to leaving `data-testid` in production build?

My team is considering a revamp to our testing practices and a question came up: should we leave data-testid in the production build? The knee-jerk answer was to strip the value using a babel plugin, but we couldn't come up with a reason why that was necessary. What are your…

thumbsup
0
message-simple
2

Trying to test a label and div pair

I know that labels are not supposed to be used with divs but I was trying to test some pairs of data that is similar. I tried this and it actually somewhat works with getByLabelText. …

thumbsup
0
message-simple
15

[Need Info] - Any open source react application where RTL is used ?

Hi, We are trying to demo some examples of RTL to the team, we have a basic react app with login credentials and the next page created with https://create-react-app.dev/docs/getting-started/, We are looking for some open source react application where RTL is used already at…

thumbsup
0
message-simple
1