• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

128
Views
Suppressing log output from cypress commands

below is the code i am using to validate that download made it to the downloads folder. The file is of csv format. filepath is declared at the top.

the test passes but the command log outputs the entire content from the file for both the assertions(should and contains). how do i suppress the command log from outputting the entire body from the file. i already tried passing the false flag and it still outputs everything. using cypress version 9.2

it('verify download',() => {   
  // some code here to fill in the form data and initiate download
  cy.readFile(filepath,{
    log : false
  }).should('exist').and('contains',"some text to assert")
})
almost 3 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error