hotwired / turbo

The speed of a single-page web application without having to write any JavaScript
https://turbo.hotwired.dev
MIT License
6.54k stars 415 forks source link

Fix test to verify no network request on prefetched link click #1257

Closed davidalejandroaguilar closed 1 month ago

davidalejandroaguilar commented 1 month ago

Description

The test aimed to verify that no network request occurs when clicking a link that had already been prefetched by hovering. However, instead of performing a click, the test erroneously attempted to hover over the link again, which had already been hovered over. Therefore, it failed to test the intended behavior.

This PR makes sure that the test is correctly set up to prevent any regression in this functionality.

afcapel commented 1 month ago

Thanks @davidalejandroaguilar !