Provide description of how to browser/integration/acceptance test
See original GitHub issueReproduction steps
Visit your homepage and interact with the component in the console. You can get a reference to one of them with:
var select = document.querySelector(".basic-single")
Now try interacting with it
select.click()
select.dispatchEvent(new Event("click"))
Neither work, which makes browser testing challenging.
Background
Most professional teams these days do some form of end-to-end testing, ours included. The only component in our stack that we haven’t been able to figure out is react-select. I recognize that we’re probably missing something obvious so your assistance would be appreciated.
Could you clarify how Selenium etc. (or just pure Javascript) can be used to drive the this select box from the outside? Many thanks
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
Heroku CI: Browser and User Acceptance Testing (UAT)
It's important to note that while we provide options for installing browsers, it is the developers responsibility to drive the browser. Each ...
Read more >Integration Testing: What is, Types with Example - Guru99
Integration Test Case differs from other test cases in the sense it focuses mainly on the interfaces & flow of data/information between the ......
Read more >What is User Acceptance Testing (UAT)? Examples - Guru99
1. One of the most important activities in the UAT is to identify and develop test scenarios. These test scenarios are derived from...
Read more >What is Cross Browser Testing and How to Perform It
In this case, a business identifies the browsers that the application must support. Testers then re-run the same test cases using different ...
Read more >Front End Testing: A Beginner's Guide - BrowserStack
The only way to ensure this is to perform comprehensive cross browser testing across real browsers and devices. Testers need to check how...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Seems there is library that solves this issue https://github.com/romgain/react-select-event
It would be great if that repo would become part of this repo and make it official API for testing.
+1