rails icon indicating copy to clipboard operation
rails copied to clipboard

System test with importmap

Open rzepetor opened this issue 1 year ago • 1 comments

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

rzepetor avatar Jul 16 '22 15:07 rzepetor

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

skipkayhil avatar Aug 03 '22 04:08 skipkayhil

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.

rails-bot[bot] avatar Aug 17 '22 05:08 rails-bot[bot]