.ai/principles/distilled/testing-frontend-testing-hierarchy.md
Use this decision order. Stop at the first match.
spec/frontend/ using Jest.spec/frontend/msw_integration/.spec/features/.qa/qa/specs/.See .ai/principles/distilled/testing-jest.md for the full how-to on all three
layers: unit/component tests, MSW integration tests, and Capybara feature
tests.
For MSW-specific additions not covered in testing-jest.md (run command, handler
registration pattern, GraphQL request counting), see
.ai/principles/distilled/testing-msw.md.
wrapper.vm properties — test the rendered template to reflect how a user perceives the component.index.js files in app/assets/javascripts/pages/) and Vue applications outside page bundles.:js metadata to RSpec feature specs that require JavaScript; DO NOT omit it when the test depends on JavaScript execution.wait_for_requests as a substitute (race conditions can occur).spec/frontend/; place MSW integration tests in spec/frontend/msw_integration/; place Capybara feature tests in spec/features/.ee/spec folder following the same structure.For the full picture, see: