Skip to content

← All questions

Can a scenario be tagged @ui and @api at once? Lint says "found @hybrid @ui @api"

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

The scenario seeds a record over the API and then checks it renders in the browser, so it genuinely is both. I tagged it as both and got:

text
✖ features/hybrid/seed-then-view.feature:6  tags/layer  Scenario must carry exactly one layer tag (@ui, @api, @hybrid); found @hybrid @ui @api.

Three? I only wrote two. The @hybrid is on the Feature: line, left over from before I split this file. So are feature-level tags counted as part of a scenario's tags, and if they are, how do I say "this one scenario is both layers"?

2 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related