Upload a media file
Upload a media file.
cy.uploadMedia('tests/cypress/fixtures/image.png')
A path to a file within the project root (Eg: 'tests/cypress/fixtures/10up.png').
Media ID with upload status. eg: { success: true, mediaId: 123}, for failure { success: false, errorMessage: '"file" has failed to upload' }
{ success: true, mediaId: 123}
{ success: false, errorMessage: '"file" has failed to upload' }
Generated using TypeDoc
Upload a media file
Upload a media file.