Skip to content

← All questions

Can one scenario belong to two modules? It touches cart and checkout

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.

Our modules each declare a tag, and lint reminds me when a scenario is missing its module's tag:

text
⚠ features/cart/checkout-flow.feature:14  module/tags  Scenario lacks module "cart" tag(s): @cart.

Fine. But the scenario adds an item to the cart and then completes checkout, and checkout is a different module. If I add @checkout as well, is it in two modules, or does the file's directory win regardless of what I tag it?

3 answers

Have a different question? Ask it.

Related