Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide description of how to browser/integration/acceptance test

See original GitHub issue

Reproduction 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.dispatchEvent(new Event("click"))

Neither work, which makes browser testing challenging.


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:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

ondrejsevcikcommented, Nov 11, 2021

Seems there is library that solves this issue

It would be great if that repo would become part of this repo and make it official API for testing.

sabinasiddiqicommented, Nov 11, 2020


Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found