Open Amy-B-Tradition opened 1 week ago
In the permissions spec for the clipboard, I saw a comment "how can we paste in chrome".
This seems to work for me
cy.fixture(csvPath).then(async (textToPaste) => { cy.window().its('navigator.clipboard') .then(clip => clip.writeText(textToPaste)) cy.get('[data-testid="my-ag-grid"]') .find('.ag-cell.ag-column-first') .first() .as('firstCell') .click() cy.get('@firstCell').type('{ctrl}v') cy.get('@firstCell').contains('myText') })
In the permissions spec for the clipboard, I saw a comment "how can we paste in chrome".
This seems to work for me