1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00
Files
jbpratt cda65e29d9 test(web): @auth:X auto-skip tag pattern (#4793)
* test(web): @auth:X auto-skip tag pattern

Add a new auto-fixture `_autoSkipByAuth` that automatically skips tests
based on @auth:X tags when the auth type doesn't match. This mirrors the
existing @feature:X pattern for feature flags.

Changes:
- Add _autoSkipByAuth fixture to TestFixtures type
- Implement auto-fixture that extracts @auth:X tags and calls
  skipUnlessAuthType automatically
- Migrate account-settings.spec.ts to use @auth:Database tags on
  describe blocks instead of manual test.skip() calls
- Remove 6 manual skipUnlessAuthType calls and unused imports

This allows tests to declare auth requirements declaratively via tags
rather than imperatively in each test body.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Brady Pratt <bpratt@redhat.com>

* test(web): fix matching multiple elements

Signed-off-by: Brady Pratt <bpratt@redhat.com>

---------

Signed-off-by: Brady Pratt <bpratt@redhat.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 11:20:48 -05:00
..