Error codes › ui-test

Error codes

ui-test

error warning The product's user interface

What it means#

A ui step of a test case that does not hold: press, long-press, release or change on a name that is no element of a ui (a part with no ui, an element the ui does not have), change on an element that is not a toggle, slider, select, input or stepper or without a value, an expectation that reads what an element does not show (hmi.engage.colour: text, label, value, display, enabled, visible, on, shown, options) or an element with nothing after it; as a warning, a press on an element with no on press. Ui steps run on the browser simulator (archec test). docs/ui.md#testing-a-ui.

How to fix it#

The message says what is wrong and where, and often what was meant (Did you mean …?). Change the model so that what this page describes no longer holds, then check again: archec check main.arche.

archec check --beginner says the most common messages in plain words, with the names that exist.

The automatic fix#

archec has no fix of its own for this code. When the message says Did you mean …?, VS Code offers that change (Quick Fix).

In the terminal#

archec explain ui-test prints this explanation; archec explain ui lists the codes of its area.