Skip to content

test(e2e): scroll a sandbox row into view before checking it - #127

Merged
Gkrumbach07 merged 1 commit into
mainfrom
fix/e2e-sandbox-rows-in-view
Oct 22, 2026
Merged

Gkrumbach07 merged 1 commit into
mainfrom
fix/e2e-sandbox-rows-in-view

Conversation

@Gkrumbach07

Copy link
Copy Markdown
Contributor

e2e fails on main's push runs for 61e2590 (#122) and 70afb39 (#123). Each time one test fails: sandbox-lifecycle.cy.ts, "displays sandbox list with different phases". The same tree passed in #123's own run and passes locally, so it is intermittent.

Why it fails. Cypress says why:

This element <button.pf-v6-c-button.pf-m-link.pf-m-inline> is not visible because its content is being clipped by one of its parent elements, which has a CSS property of overflow

Since server-side pagination (#122), the sandbox list has a third filter field and a pager above it. At CI's 1280×720 viewport, the second row (data-processor) starts below the fold of the page's scrolling content area; the failure screenshots show only my-agent in view. Cypress counts a row clipped by its scroll container as not visible. Whether the row is clipped depends on how the page lays out on the runner.

What changes (tests only):

  • The test scrolls each row into view before asserting it is visible.
  • The workspace draft-summary stub matched only the bare path. The paged list asks with ?sandbox=…, so those requests fell through to a BFF that is not running in e2e and answered 500 in every run (visible in the failure screenshots). The stub now matches with a query.

Checked. All 47 Cypress specs pass locally. The failure did not reproduce locally, so this PR's own e2e run is the real check.

🤖 Generated with Claude Code

Since server-side pagination (#122) the sandbox list has a third filter and
a pager above it, and at CI's 1280x720 viewport its second row starts below
the fold of the page's scrolling content area. Cypress counts a row its
scroll container clips as not visible, so "displays sandbox list with
different phases" failed on main's push runs for 61e2590 and 70afb39 ("its
content is being clipped by one of its parent elements, which has a CSS
property of overflow"). Each row is now scrolled to before it is checked.

The workspace draft-summary stub also matched only a bare path, while the
paged list asks with ?sandbox=..., so those requests fell through to a BFF
that is not running and answered 500. The stub now matches with a query.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gkrumbach07
Gkrumbach07 merged commit 3b9560a into main Oct 22, 2026
14 checks passed
@Gkrumbach07
Gkrumbach07 deleted the fix/e2e-sandbox-rows-in-view branch November 6, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant