/vaadin-grid-load-fail-issue

Demonstration test case for Vaadin bug

Primary LanguageJavaApache License 2.0Apache-2.0

vaadin-grid-load-fail-issue

Demonstration test case for Vaadin Flow bugs #20240 and #6349

Bug scenario:

  1. When the page is first loaded, an empty Grid is displayed
  2. One second later, the Grid's data provider signals refreshAll() with new data
  3. The Grid updates on the server, but the browser display does not immediately update
  4. Eventually, when some other unrelated event happens, the browser finally does update

To reproduce the bug on Mac OS:

  1. You need to have tomcat@10 installed via brew
  2. Run mvn clean package
  3. Run ./run.sh
  4. Connect to http://localhost:8080/example/example/
  5. Notice the animated loading indicator spins indefinitely (much longer than 1 second)
    1. You can get it to finish by clicking it, sometimes switching browser tabs, etc.
  6. Press the "Search" button repeatedly to trigger new load cycles
  7. 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:

  1. UI.getCurrent() returns the wrong value

To reproduce the bug on Mac OS:

  1. You need to have tomcat@10 installed via brew
  2. Run mvn clean package
  3. Run ./run.sh
  4. Open browser tab #1 to http://localhost:8080/example/example/other
    1. It should say "This is the first toot"
  5. Open browser tab #2 to http://localhost:8080/example/example/other
    1. It should say "This is not the first toot"
  6. Press the button on broswer tab #1
  7. Press the button on broswer tab #2
  8. Browser tab #2 will show "My current UI" to be the "actual UI" for tab #1