Skip to content

Commit

Permalink
test: add React 18 profile
Browse files Browse the repository at this point in the history
  • Loading branch information
platosha committed Feb 28, 2025
1 parent 1ff433f commit 13f4501
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 10 deletions.
55 changes: 45 additions & 10 deletions packages/java/tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
<!-- make sure we do not leave webpack-dev-server running after IT -->
<vaadin.reuseDevServer>false</vaadin.reuseDevServer>

<!-- enable React 19 feature flag by default -->
<vaadin.experimental.react19>true</vaadin.experimental.react19>

<!-- Used in the tests, should be overridden for each module to support
concurrent running of test modules. -->
<server.port>8888</server.port>
Expand Down Expand Up @@ -139,6 +142,18 @@

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>${properties-maven-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>set-system-properties</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
Expand Down Expand Up @@ -252,16 +267,26 @@
</goals>
<configuration>
<properties>
<vaadin.reuseDevServer>${vaadin.reuseDevServer}</vaadin.reuseDevServer>
<vaadin.devmode.liveReload.enabled>
${vaadin.devmode.liveReload.enabled}</vaadin.devmode.liveReload.enabled>
<vaadin.allow.appshell.annotations>
${vaadin.allow.appshell.annotations}</vaadin.allow.appshell.annotations>

<jetty.scantrigger>
${jetty.scantrigger}</jetty.scantrigger>--> <!-- Allow test clients not on localhost to connect to Vite-->
<vaadin.devmode.vite.options>
${vaadin.devmode.vite.options}</vaadin.devmode.vite.options>
<jetty.scantrigger>
${jetty.scantrigger}
</jetty.scantrigger>
<vaadin.reuseDevServer>
${vaadin.reuseDevServer}
</vaadin.reuseDevServer>
<vaadin.devmode.liveReload.enabled>
${vaadin.devmode.liveReload.enabled}
</vaadin.devmode.liveReload.enabled>
<vaadin.allow.appshell.annotations>
${vaadin.allow.appshell.annotations}
</vaadin.allow.appshell.annotations>
<!-- Allow test clients not on localhost
to connect to Vite -->
<vaadin.devmode.vite.options>
${vaadin.devmode.vite.options}
</vaadin.devmode.vite.options>
<vaadin.experimental.react19>
${vaadin.experimental.react19}
</vaadin.experimental.react19>
</properties>
</configuration>
</execution>
Expand Down Expand Up @@ -331,5 +356,15 @@
</modules>
</profile>

<profile>
<id>react-18</id>
<properties>
<vaadin.experimental.react19>false</vaadin.experimental.react19>
</properties>
<modules>
<module>spring</module>
</modules>
</profile>

</profiles>
</project>
48 changes: 48 additions & 0 deletions packages/java/tests/spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,44 @@
</goals>
</execution>
</executions>
<configuration>
<systemPropertyVariables>
<vaadin.reuseDevServer>
${vaadin.reuseDevServer}
</vaadin.reuseDevServer>
<vaadin.devmode.liveReload.enabled>
${vaadin.devmode.liveReload.enabled}
</vaadin.devmode.liveReload.enabled>
<vaadin.allow.appshell.annotations>
${vaadin.allow.appshell.annotations}
</vaadin.allow.appshell.annotations>
<!-- Allow test clients not on localhost
to connect to Vite -->
<vaadin.devmode.vite.options>
${vaadin.devmode.vite.options}
</vaadin.devmode.vite.options>
<vaadin.experimental.react19>
${vaadin.experimental.react19}
</vaadin.experimental.react19>
<vaadin.reuseDevServer>
${vaadin.reuseDevServer}
</vaadin.reuseDevServer>
<vaadin.devmode.liveReload.enabled>
${vaadin.devmode.liveReload.enabled}
</vaadin.devmode.liveReload.enabled>
<vaadin.allow.appshell.annotations>
${vaadin.allow.appshell.annotations}
</vaadin.allow.appshell.annotations>
<!-- Allow test clients not on localhost
to connect to Vite-->
<vaadin.devmode.vite.options>
${vaadin.devmode.vite.options}
</vaadin.devmode.vite.options>
<vaadin.experimental.react19>
${vaadin.experimental.react19}
</vaadin.experimental.react19>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Expand Down Expand Up @@ -231,6 +269,16 @@
</modules>
</profile>

<profile>
<id>react-18</id>
<modules>
<module>no-endpoints</module>
<module>react-grid-test</module>
<module>react-i18n</module>
<module>react-signals</module>
</modules>
</profile>

<profile>
<id>native</id>
<modules>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Enable Hilla I18n feature flag so that we can test it
com.vaadin.experimental.hillaI18n=true
# React 19 (default in Vaadin 25)
com.vaadin.experimental.react19=true

0 comments on commit 13f4501

Please sign in to comment.