Options
All
  • Public
  • Public/Protected
  • All
Menu

Module commands/upload-media

Index

Functions

Functions

  • uploadMedia(filePath: string): void
  • Upload a media file

    example

    Upload a media file.

    cy.uploadMedia('tests/cypress/fixtures/image.png')
    

    Parameters

    • filePath: string

      A path to a file within the project root (Eg: 'tests/cypress/fixtures/10up.png').

    Returns void

    Media ID with upload status. eg: { success: true, mediaId: 123}, for failure { success: false, errorMessage: '"file" has failed to upload' }

Generated using TypeDoc