rails
rails copied to clipboard
System test with importmap
Steps to reproduce
I have a "Sign up" link that has data-turbo-frame
attribute, when test starts sometimes click is not intercepted by Turbo and nothing happens, but sometimes test run normally.
I also noticed that on development server if I refresh website and quickly click "Sign up" button also nothing happens. I must wait some time (maybe second) to be able to Turbo works
Expected behavior
Capybara tests should always starts only when all JS modules are loaded
Actual behavior
Sometimes JS modeles are not loaded before test starts
System configuration
Rails version: 7.0.3.1
Ruby version: 3.1.2
Do you have a repo/reproduction where you can show this happening? It's very hard to figure out what is going wrong without one
This issue has been automatically closed because there has been no follow-up response from the original author. We currently don't have enough information in order to take action. Please reach out if you have any additional information that will help us move this issue forward.