Demonstration test case for Vaadin Flow bugs #20240 and #6349
Bug scenario:
- When the page is first loaded, an empty Grid is displayed
- One second later, the Grid's data provider signals
refreshAll()
with new data - The Grid updates on the server, but the browser display does not immediately update
- Eventually, when some other unrelated event happens, the browser finally does update
To reproduce the bug on Mac OS:
- You need to have
tomcat@10
installed viabrew
- Run
mvn clean package
- Run
./run.sh
- Connect to
http://localhost:8080/example/example/
- Notice the animated loading indicator spins indefinitely (much longer than 1 second)
- You can get it to finish by clicking it, sometimes switching browser tabs, etc.
- Press the "Search" button repeatedly to trigger new load cycles
- After the first load, it consistently takes only 1 second to load (which is correct)
To repeat the failure scenario (longer than 1 second load time), just reload the browser tab.
Bug scenario:
UI.getCurrent()
returns the wrong value
To reproduce the bug on Mac OS:
- You need to have
tomcat@10
installed viabrew
- Run
mvn clean package
- Run
./run.sh
- Open browser tab #1 to
http://localhost:8080/example/example/other
- It should say "This is the first toot"
- Open browser tab #2 to
http://localhost:8080/example/example/other
- It should say "This is not the first toot"
- Press the button on broswer tab #1
- Press the button on broswer tab #2
- Browser tab #2 will show "My current UI" to be the "actual UI" for tab #1