File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/test/java/com/flowingcode/vaadin/addons/xterm/integration Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,21 @@ public void testFeature() {
3434 Dimension dimension = getDriver ().manage ().window ().getSize ();
3535
3636 getDriver ().manage ().window ().setSize (new Dimension (dimension .width / 2 , dimension .height ));
37- int colsAfter = term .getColumnWidth ();
37+
38+ Integer colsAfter = waitUntil (driver -> {
39+ int w = term .getColumnWidth ();
40+ return w != colsBefore ? w : null ;
41+ });
3842
3943 assertTrue (colsAfter * 2 <= colsBefore );
4044
4145 getDriver ().manage ().window ().setSize (dimension );
42- int colsRestored = term .getColumnWidth ();
46+
47+ int colsRestored = waitUntil (driver -> {
48+ int w = term .getColumnWidth ();
49+ return w != colsAfter ? w : null ;
50+ });
51+
4352 assertEquals (colsBefore , colsRestored );
4453 }
4554}
You can’t perform that action at this time.
0 commit comments