question-mark
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.

Overlay not popping up when button is clicked

See original GitHub issue

Description: I am currently trying to write an automated test that involves clicking on a button within a navigation bar. The expected behavior is that an overlay that contains more links would pop up, as seen in this video here: https://www.screencast.com/t/55vkmhY8msjt

When testing this manually within a Chrome browser (which is recorded in the aforementioned video), the overlay pops up as expected.

But when executing the automated Cypress test within the Cypress browser, Cypress is able to locate the element and successfully click it, but the overlay does not pop up. When I manually click on the button within the Cypress browser, the overlay does not pop up.

Video of bug being reproduced: https://www.screencast.com/t/iSn8suNHa It’s hard to tell, but after the test execution finishes, I am manually trying to click on the button with my mouse.

I’ve tried several things:

cy.get(selector).click({force:true})
cy.get(selector).trigger('click')
cy.get(selector).invoke('click')

Extra information: This button was recently re-implemented using React Native’s TouchableWithoutFeedback There are no errors being thrown in Cypress, no errors in the console.

Versions

Cypress 7.5.0 Chrome Version 90.0.4430.93

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jennifer-shehanecommented, Jun 10, 2021

We’ll need a reproducible example to track down why there would be a difference. Not being able to manually click the button within Cypress and not seeing any errors is strange.

0reactions
PeterJayCruzcommented, Jun 22, 2021

@jennifer-shehane, thanks for looking into this! We discovered there to be an actual bug in our app, which we have now resolved, and our automated test is now passing in Cypress.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why isn't my black overlay appearing when button is clicked?
The opacity is 0 but the box is still technically visible, which catches the click and prevents the button from getting clicked.
Read more >
How to Fix Discord Overlay not Working (10Ways) - YouTube
Related Reference How-To Article ...
Read more >
Fix: Discord Overlay Not Working - Appuals
Fix: Discord Overlay Not Working · Select Appearance from the left pane · Close the game and open Discord · Right-click on the...
Read more >
6 Ways to Fix Discord Overlay Not Working
1. Open Discord. Click User Settings (gear icon). Select Advanced and toggle off Hardware Acceleration · 2. In the left pane, scroll down...
Read more >
How to Fix Discord Overlay Not Working [Partition Manager]
Step 2: On the left panel, click Overlay. Make sure toggle next to Enable in-game overlay is turned on. Step 3: Click Games...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found