# Implementation AGILE-343 - Extract a generic Turbo frame reload probe for feature specs

Project: Stream agile
Status: closed
URL: https://community.openproject.org/work_packages/AGILE-343

## OPEN POINTS

_No work packages_

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Designer |  |
| Developers |  |

## Technical details

| Attribute | Value |
| --- | --- |
| Target versions | 17.7.0 |
| Module |  |
| Requires doc change | No |

## Belongs to

_No work packages_

## Previous chunks

_No work packages_

## Next chunks

_No work packages_

## Estimates

| Attribute | Value |
| --- | --- |
| Effort (shirt size) |  |
| Work |  |

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| % Complete | 100% |
| Category |  |
| Sprint |  |
| Backlog bucket |  |
| Priority | Medium |
| List |  |
| Pull preview |  |
| Labels |  |

## Description

### Context

<mention class="mention" data-id="AGILE-322" data-type="work_package" data-text="#AGILE-322">#AGILE-322</mention> (<https://github.com/opf/openproject/pull/24157>) introduced `install_backlogs_container_reload_probe` / `expect_backlogs_container_not_reloaded` in `modules/backlogs/spec/support/pages/backlog.rb`. The pattern (an armed one-shot `turbo:frame-load` listener plus `evaluate_async_script` with an active wait) makes asserting a negative — that a Turbo frame did **not** reload — reliable in Capybara, which is notoriously flaky otherwise. Review feedback flagged it as too useful to stay locked inside the Backlogs page object.

### Goal

Extract a generic spec support helper, e.g. `install_turbo_frame_reload_probe(frame_id)` and `expect_turbo_frame_not_reloaded(frame_id, wait:)`, and migrate the Backlogs page object onto it.

### Notes

  - Keep the script-timeout headroom trick: Capybara caps `evaluate_async_script` at `Capybara.default_max_wait_time`, so the Selenium budget must be strictly larger than the in-page wait (see the comment in the current implementation).
  - Each `install` call resets the latch and arms a fresh listener, so the probe is re-armable per action — preserve that contract.
  - Overlaps the Turbo test coverage effort in <mention class="mention" data-id="76518" data-type="work_package" data-text="#76518">#76518</mention> (<https://github.com/opf/openproject/pull/23980>); coordinate on where the helper should live.
