Skip to content
Snippets Groups Projects
Commit a43c615e authored by Simon Urli's avatar Simon Urli
Browse files

XWIKI-22208: Boolean filters are not properly removed in LiveData

  * Prevent flickering behaviour
parent 4ea11584
No related branches found
No related tags found
No related merge requests found
...@@ -245,6 +245,7 @@ void livedataLivetableTableLayout(TestUtils testUtils, TestReference testReferen ...@@ -245,6 +245,7 @@ void livedataLivetableTableLayout(TestUtils testUtils, TestReference testReferen
// Test filter on boolean values // Test filter on boolean values
suggestInputElement.clear().hideSuggestions(); suggestInputElement.clear().hideSuggestions();
liveDataElement.waitUntilReady();
assertEquals(2, tableLayout.countRows()); assertEquals(2, tableLayout.countRows());
// Take the focus on the is active filter. // Take the focus on the is active filter.
...@@ -254,6 +255,7 @@ void livedataLivetableTableLayout(TestUtils testUtils, TestReference testReferen ...@@ -254,6 +255,7 @@ void livedataLivetableTableLayout(TestUtils testUtils, TestReference testReferen
suggestionElements = suggestInputElement.getSuggestions(); suggestionElements = suggestInputElement.getSuggestions();
assertEquals(1, suggestionElements.size()); assertEquals(1, suggestionElements.size());
suggestionElements.get(0).select(); suggestionElements.get(0).select();
liveDataElement.waitUntilReady();
assertEquals(1, tableLayout.countRows()); assertEquals(1, tableLayout.countRows());
tableLayout.assertRow(NAME_COLUMN, NAME_LYNDA); tableLayout.assertRow(NAME_COLUMN, NAME_LYNDA);
...@@ -263,6 +265,7 @@ void livedataLivetableTableLayout(TestUtils testUtils, TestReference testReferen ...@@ -263,6 +265,7 @@ void livedataLivetableTableLayout(TestUtils testUtils, TestReference testReferen
suggestionElements = suggestInputElement.getSuggestions(); suggestionElements = suggestInputElement.getSuggestions();
assertEquals(1, suggestionElements.size()); assertEquals(1, suggestionElements.size());
suggestionElements.get(0).select(); suggestionElements.get(0).select();
liveDataElement.waitUntilReady();
assertEquals(1, tableLayout.countRows()); assertEquals(1, tableLayout.countRows());
tableLayout.assertRow(NAME_COLUMN, NAME_NIKOLAY); tableLayout.assertRow(NAME_COLUMN, NAME_NIKOLAY);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment