AWS Amplify has announced Cypress as their tool of choice for adding end-to-end testing for the Amplify Console!

Learn More


Improve this doc

This is the internal API for controlling what get’s printed to the Command Log.

Useful when writing your own custom commands.


This page is currently a work in progress and is not fully documented.




options (Object)

Pass in an options object to Cypress.log().

Option Default Description
$el undefined
name name of the command
displayName name of the command Overrides name only for display purposes.
message command args
consoleProps function() {}


Cypress.Commands.add('myCustomCommand', (arg1, arg2) => {
  const log = Cypress.log({
    consoleProps: () => {
      // return an object literal which will
      // be printed to the dev tools console
      // on click
      return {
        'Some': 'values',
        'For': 'debugging'

See also