📅  最后修改于: 2022-03-11 15:02:39.629000             🧑  作者: Mango
it('Uploads a CSV', () => {
cy.document().trigger('dragenter')
// you don't need to use cy.document() that is where my event listener is.
//you could use cy.get('element').trigger('dragenter')
cy.dropFile('test.csv')
})