File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed
src/test/java/com/flowingcode/addons/applayout Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .flowingcode .addons .applayout ;
2+
3+ import com .flowingcode .addons .applayout .menu .MenuItem ;
4+ import com .vaadin .flow .component .HasElement ;
5+
6+ public class AbstractLayoutDemo extends AbstractFcAppRouterLayout {
7+
8+ @ Override
9+ protected void configure (AppLayout app ) {
10+ app .setMenuItems (
11+ new MenuItem ("Item 1" ),
12+ new MenuItem ("Item 2" )
13+ );
14+ }
15+
16+ @ Override
17+ public void showRouterLayoutContent (AppLayout app , HasElement content ) {
18+ super .showRouterLayoutContent (app , content );
19+ }
20+
21+ }
Original file line number Diff line number Diff line change 1+ package com .flowingcode .addons .applayout ;
2+
3+ import com .vaadin .flow .component .html .Div ;
4+ import com .vaadin .flow .component .html .Span ;
5+ import com .vaadin .flow .router .Route ;
6+
7+ @ Route (value ="view" , layout = AbstractLayoutDemo .class )
8+ public class AbstractLayoutView extends Div {
9+
10+ {add (new Span ("Hello world" ));}
11+
12+ }
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ public void describeTo(Description description) {
2828 @ Override
2929 protected boolean matchesSafely (TestBenchElement item , Description mismatchDescription ) {
3030 String script = "let s=arguments[0].shadowRoot; return !!(s&&s.childElementCount)" ;
31+ if (!item .getTagName ().contains ("-" ))
32+ return true ;
3133 if ((Boolean )item .getCommandExecutor ().executeScript (script , item ))
3234 return true ;
3335 else {
You can’t perform that action at this time.
0 commit comments