TEST005warningPro

e2e-test-duplication

E2E test contains duplicated code that should use shared helpers

Applies to: JavaScript, SPEC.JS, SPEC.TS, TEST.JS, TEST.TS, TypeScript

Why this matters

E2E tests often accumulate duplicated login helpers, hardcoded credentials, inline selectors, and magic timeout values. This makes tests brittle and hard to maintain. Extract common patterns to a shared helpers file.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, TEST005 includedstablestack explain TEST005

TEST005 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: TEST005