-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
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')
})
Metadata
Metadata
Assignees
Labels
No labels