Skip to content

Commit

Permalink
fix: revert ensure first page is loaded; ignore test till fixed (#551) (
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-fix committed Jan 12, 2021
1 parent e472e53 commit fd8854a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void toStringIsUsedForObjectSerialization() {
allCellContents.forEach(vgcc -> {
String slotName = vgcc.getAttribute("slot")
.replace("vaadin-grid-cell-content-", "");
if (Integer.parseInt(slotName) < 7 || Integer.parseInt(slotName) > 20) {
if (Integer.parseInt(slotName) <= 180) {
Assert.assertTrue(
"A grid cell was expected to have text content but had none.",
StringUtils.isNotBlank(vgcc.getText()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.openqa.selenium.By;

Expand Down Expand Up @@ -58,6 +59,7 @@ public void setInitialSortOrder_changeOrderFromServer_dataSorted() {
}

@Test
@Ignore("Fix reverted for https://github.com/vaadin/vaadin-flow-components/issues/427")
public void setInitialSortOrderGridHidden_showGrid_dataPresentAndSorted() {
findElement(By.id("sort-hidden-by-age")).click();
findElement(By.id("show-hidden-grid")).click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,6 @@ import { ItemCache } from '@vaadin/vaadin-grid/src/vaadin-grid-data-provider-mix
}
})

// Need to flush FlattenedNodesObserver in order to update `grid._columnTree`
// before `_dataProviderChanged` is called. Otherwise, the first page won't
// be correctly loaded because of `_canPopulate` returns incorrect result.
grid._observer.flush();

grid.dataProvider = tryCatchWrapper(function(params, callback) {
if (params.pageSize != grid.pageSize) {
throw 'Invalid pageSize';
Expand Down

0 comments on commit fd8854a

Please sign in to comment.