diff --git a/pom.xml b/pom.xml
index 171e334e9..3e425e175 100644
--- a/pom.xml
+++ b/pom.xml
@@ -293,7 +293,7 @@
io.github.bonigarcia
webdrivermanager
- 5.4.0
+ 5.4.1
diff --git a/webtau-core-groovy/src/test/groovy/org/testingisdocumenting/webtau/data/table/TableDataGroovyTest.groovy b/webtau-core-groovy/src/test/groovy/org/testingisdocumenting/webtau/data/table/TableDataGroovyTest.groovy
index 5e19f9bff..52c901b11 100644
--- a/webtau-core-groovy/src/test/groovy/org/testingisdocumenting/webtau/data/table/TableDataGroovyTest.groovy
+++ b/webtau-core-groovy/src/test/groovy/org/testingisdocumenting/webtau/data/table/TableDataGroovyTest.groovy
@@ -81,6 +81,24 @@ class TableDataGroovyTest {
"id31" | "id32" | "description three" }
}
+ @Test
+ void "should merge in another table using only matching column names"() {
+ def table = ["hello" | "world"] {
+ 12 | 46
+ 54 | 88 }
+
+ def incoming = ["extra" | "hello"] {
+ 700 | 24
+ 800 | 48 }
+
+ table.addRowsExistingColumnsOnly(incoming)
+ table.should == ["hello" | "world"] {
+ 12 | 46
+ 54 | 88
+ 24 | null
+ 48 | null }
+ }
+
@Test
void "should generate multiple rows from multi-values"() {
def tableData = createTableDataWithPermute()
diff --git a/webtau-core/src/main/java/org/testingisdocumenting/webtau/data/table/Record.java b/webtau-core/src/main/java/org/testingisdocumenting/webtau/data/table/Record.java
index 00d7c9338..524a101ea 100644
--- a/webtau-core/src/main/java/org/testingisdocumenting/webtau/data/table/Record.java
+++ b/webtau-core/src/main/java/org/testingisdocumenting/webtau/data/table/Record.java
@@ -26,28 +26,33 @@
import java.util.*;
import java.util.function.Function;
+import java.util.stream.Collectors;
import java.util.stream.Stream;
public class Record implements PrettyPrintable {
private final TableDataHeader header;
- private final List