menu
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
# Svelte Help
view-forward
# TestCafe Help
view-forward
# Vue Help
view-forward
Team
Posts
Members
Info

Testing Complex Applications the Testing Library Way

I am currently considering if the Testing Library really is the right way of testing grown complex applications like I intended to. Test Scenario (also take a look at the image below) …

thumbsup
1
message-simple
3
·6d·Locked# General Help

rerendering components with Provider

The only guides I've found are from two years ago, which claim that this should work: But I haven't gotten this to work. The component seems to rerender, but mapStateToProps isn't called so the new store state isn't used. Is there a way to get rerender and Provider working…

thumbsup
0
message-simple
9

Cannot read property 'params' of undefined

Hello, I'm testing a component that should receive type from this.props.match.params. Is there any way that I can read them directly from history without mocking them in props? I'm using react-router: v5.0.0 (but this didn't worked in v4 as well), "react-testing-library":…

thumbsup
0
message-simple
6

Best strategy to test canvas?

This might not be limited to a testing-library question but I'm wondering what's the best strategy to test canvas. Basically, I'd like to follow testing-library's philosophy to test behaviors a.k.a what users could see. However, whatever users could see is on a canvas and…

thumbsup
0
message-simple
3

What is the best way to test key combinations?

We are trying to test a component that uses key combinations, e.g. Ctrl + C or Cmd + C. Is there an easy method or library for firing events triggered by multiple key presses?

thumbsup
0
message-simple
3

getByText to test that text is NOT on the page

I am trying to test that a certain text renders, and that certain text does NOT render on my page once my component loads, based on specific props. However, I keep on running into an error for my tests on the (rightfully) missing text. Here is my set up: And here are the tests I…

thumbsup
0
message-simple
4

Is there a way to test svelte slots?

I have a svelte component that manipulates a prop and passes it on as a prop to a slot. It should be a simple test but I cannot figure out how to get testing library to render any slots. Any help or pointers is hugely appreciated

thumbsup
0
message-simple
0

is it possible to fire touch events? any examples to share? thanks!

thumbsup
0
message-simple
1

Difference of result between on browser and on console

I'm using ant design(v3.x) and try to test with react-testing-library. I encountered really weird case that some attributes and values are shown on the developer tools on chrome but not shown on the console. For example, there is 'for' attribute of 'label' tag on the browser,…

thumbsup
0
message-simple
6

Struggling with testing a Downshift component

I have a component that returns a dropdown component and this Dropdown is built with Downshift. I'm trying to test a fireEventChange on the dropdown. Here is my component and the test I have so far. Component Component Test

thumbsup
0
message-simple
2