Repository navigation
test(web): live e2e for admin, users, roles, backups, registries - #693
ValgulNecron wants to merge 4 commits into
Conversation
…specs Spec 013 T037/T038: the operator bucket and the e2e-web-live job both call ensureResticRepo and assert the warm-up Job succeeded, so the live backup spec starts against a ready restic repo. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
…egistries Spec 013 T039-T043: five live Playwright specs, each with a reload persistence check and a real-API error path, plus the _seed.ts helpers they need (users, roles, backup destination, cleanup). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The first live run showed three selector problems: the sink switch and the permission checkbox inputs sit under HeroUI's decorative spans, so pointer clicks were intercepted (toggle with Space / check with force, as theme-customization and servers-core do), and a successful user save already closes the Edit dialog, so there is no Cancel to click. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
CI Report - ab74289run 38498792723 - attempt 1 1 failed - 24 passed - 0 skipped - 6 cancelled - 24m20s elapsed Failing
Coverage
Changed
Slowest jobs
e2e buckets run
|
role-bindings seeds its user through the API after the Users list has loaded, so reload before looking for it. backup-restore has two restore rows for the same server (the happy path's Succeeded one first), so match the Failed row instead of the first row. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
|
Cause, from the Playwright error context: The fix would be a one-line selector change in Generated by Claude Code |
Before: the live Playwright suite had no coverage for notification sinks, users and roles, role bindings, backup and restore, or mod registries. Those flows were only tested against mocks.
After: five new live specs run in
e2e web liveagainst the real API. Each one checks that its change survives a reload and hits one real-API error path. Before Playwright starts, the live job warms the restic repo with a newTestE2E_ResticRepoReadytest.How: this covers Spec 013 US2 (T037–T043).
TestE2E_ResticRepoReadyis registered inbucket_operatorand also runs as a step after "bootstrap admin" in the live job._seed.tsgains user, role, backup-destination and cleanup helpers.users-and-rolesandrole-bindingseach add exactly one extra login, from a fresh context.page.routeor msw.Five places where the code differs from the task text. Each is noted in a comment in its spec:
169.254.169.254on save and blocks it only at delivery, so the error path asserts the inline SSRF result after "Send test".T044 (login count, duration, flipping G-07 to G-11) follows after the first green live run.
🤖 Generated with Claude Code
Generated by Claude Code