Skip to content

Commit

Permalink
test: reduce the selection range to reduce flakiness (#4187) (#4189)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomi Virkki <[email protected]>
  • Loading branch information
vaadin-bot and tomivirkki authored Nov 24, 2022
1 parent 24168bf commit baf2e57
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ public void cellFocus_moveFromSheetOneToSheetTwoAndBack_cellSelectionRemains()
throws InterruptedException {
SpreadsheetElement spreadsheet = getSpreadsheet();

clickCell("C8");
clickCell("C5");
spreadsheet.addSheet();
spreadsheet.selectSheetAt(1);
selectRegion("C3", "G14");
selectRegion("C3", "E5");
spreadsheet.selectSheetAt(0);
waitUntil(e -> spreadsheet.getCellAt("C8").isCellSelected());
waitUntil(e -> spreadsheet.getCellAt("C5").isCellSelected());
spreadsheet.selectSheetAt(1);
getCommandExecutor().waitForVaadin();
String[] cols = { "C", "D", "E", "F", "G" };
String[] cols = { "C", "D", "E" };
for (String column : cols) {
for (int row = 3; row <= 14; row++) {
for (int row = 3; row <= 5; row++) {
Assert.assertTrue("Cell " + column + row + " is not selected",
spreadsheet.getCellAt(column + "" + row)
.isCellSelected());
Expand Down

0 comments on commit baf2e57

Please sign in to comment.