Tag.ios is '@ios',
Direction.up is 'up'. Writing the constant instead of the string gives you completion in the editor,
and a misspelled name is an error before the test runs (a misspelled tag in a title is silently ignored:
the test runs everywhere).
Each constant is also a type of the same name (Direction is 'up' | 'down' | 'left' | 'right'), so a
helper of your own can take the same values as the API.
Using them
.feature files tags stay as they are (@android): Gherkin has no imports.
The constants
Apart from
Tag, every value is its own name (Speed.fast is 'fast'). HostErrorName holds only the
errors raised on the host (CONNECT_TIMEOUT, APP_CRASHED …).
Renamed tags
Tag holds the default names. A project that renames the tags writes its own
names; keep them in a constant of your own next to the config: