Skip to content

Show warning messages in command log #4917

@kuceb

Description

@kuceb

It would be useful to allow commands to print a warning instead of an error in the command log.

This would allow commands to alert the user something they have done may lead to unexpected behavior, such as pressing the {home} key while we cannot preform the default action of scrolling. Or calling a cy.wait after a cy.visit.

We could have:

  • If there's a soft error during a command, allow a config value to turn it into a warning.
  • If there's a warning during a command, add an icon to the command and allow it to be clicked and expanded
  • Ability to add a new command log message / event for warnings/errors not linked directly to a command

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions