Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

91
Views
Automated File Uploading

i tried to auto upload a file to a project am working on but the file name is shown as uploaded in the field but its not actually because the submit button is still disabled, But when i upload it manually the upload button will be clickable.

describe('Upload Test', function () {
  it('Upload Test', function () {
    cy.visit('http://localhost:4200')
    cy.get('#version-no').type('4')
    cy.get('#version-notes').type('test notes ')
    const test_upload = "../fixtures/example.csv";
    cy.get('#file')
      .attachFile(test_upload)


    cy.get('#file')
      .its('0.files')
      .its('0')
      .its('name')
      .should('eq', 'example.csv')

    cy.get('#file')
      .trigger('change', { force: true })

    cy.get('#file')
      .trigger('fileuploadsubmit', { force: true })

    cy.get('[data-cy=Submit_Catalogue]').click({ force: true },'center')
  })
})

here is the HTML

about 4 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 Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!