Separates the tests for the Material dialog into Material3 and Material2 versions. More info in #127064