📜  上传照片 cypress - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:39.629000             🧑  作者: Mango

代码示例2
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')
})