Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: CellExternalCopyManager plugin restores focus on paste (#1011)
* fix: SlickCellExternalCopyManager plugin restores focus on paste
- Loading branch information
1 parent
ee22b59
commit d1132c9
Showing
6 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
describe('Example - Excel-compatible spreadsheet and Cell Selection', { retries: 0 }, () => { | ||
const cellHeight = 25; | ||
|
||
it('should load Example', () => { | ||
cy.visit(`${Cypress.config('baseUrl')}/examples/example-excel-compatible-spreadsheet.html`); | ||
}); | ||
|
||
it('should click on cell B2, copy value, ArrowDown, paste value, ArrowRight, and expect to be in column C', () => { | ||
cy.getCell(2, 2, '', { parentSelector: "#myGrid", rowHeight: cellHeight }) | ||
.as('cell_B2') | ||
.click(); | ||
|
||
cy.get(".slick-cell.active") | ||
.realPress(["Control", "C"]); | ||
|
||
cy.get(".slick-cell.active") | ||
.type('{downarrow}'); | ||
|
||
cy.get(".slick-cell.active") | ||
.realPress(["Control", "V"]); | ||
|
||
cy.get(".slick-cell.active") | ||
.type('{rightarrow}'); | ||
|
||
cy.get('#myGrid .slick-cell.l3.r3.selected') | ||
.should('have.length', 1); | ||
|
||
cy.getCell(3, 2, '', { parentSelector: "#myGrid", rowHeight: cellHeight }) | ||
.should('have.text', '3'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters