Skip to content

Schema example improvements #39

@Fishbowler

Description

@Fishbowler

Examples currently take two forms:

JSON type:

"examples": [
    {
        "times": 3,
        "commands": [
            {
                "inputText": "Retry"
            },
            {
                "pressKey": "enter"
            }
        ]
    } //snip
]

image

Plain text type:

"examples": [
    {
        "description": "Detailed assertion with condition and label",
        "example": "- assertTrue:\n    condition: \"document.querySelector('#button').disabled === false\"\n    label: \"Verify button is enabled\""
    }
]

image

Problem:

We should standardise.

The former is easier to write. The latter feels more user friendly.

Is there a third option?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions