Closed ZheSun88 closed 1 year ago
My bad here. The Flow test utility module is based on Testbench API for JUnit4.
For JUnit 5 we need to depend on vaadin-testbench-core-junit5
, make the abstract class extend BrowserTestBase
and annotate test methods with @BrowserTest
instead of @Test
For JUnit 5 we need to depend on
vaadin-testbench-core-junit5
, make the abstract class extendBrowserTestBase
and annotate test methods with@BrowserTest
instead of@Test
I made those changes, let's see if it validates now. Locally I'm getting this error:
[ERROR] Errors:
[ERROR] MainViewIT.setUp:30->AbstractViewIT.setUp:36 » WebDriver unknown error: net::E...
[ERROR] MainViewIT.setUp:30->AbstractViewIT.setUp:36 » WebDriver unknown error: net::E...
[INFO]
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0
With the latest commit test are passing locally for me
The only thing I don't like that much is that locally, the test is not executed headless
ah. good point.. let me try..