Skip to content
Discussion options

You must be logged in to vote

@jacob-carlborg-apoex generally, we use test-only selectors for this kind of thing internally: https://github.com/primer/view_components/blob/be1c07750483b3cf9ee67f7bb2db6021858f8bbd/app/lib/primer/test_selector_helper.rb.

That being said, I'd love to see support for similar functionality to your example in ViewComponent. Could you propose some API options? I assume we'd want at least Minitest and RSpec options.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jacob-carlborg-apoex
Comment options

@boardfish
Comment options

@jacob-carlborg-apoex
Comment options

Answer selected by joelhawksley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants