Skip to content

Commit d51da83

Browse files
committed
Add match level
1 parent 0e252a9 commit d51da83

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/java/com/applitools/example/LayoutRegionsTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.applitools.eyes.BatchInfo;
44
import com.applitools.eyes.EyesRunner;
5+
import com.applitools.eyes.MatchLevel;
56
import com.applitools.eyes.RectangleSize;
67
import com.applitools.eyes.TestResultsSummary;
78
import com.applitools.eyes.selenium.BrowserType;
@@ -45,6 +46,11 @@ public static void main(String [] args) {
4546
new ChromeEmulationInfo(DeviceName.Pixel_2, ScreenOrientation.PORTRAIT),
4647
new ChromeEmulationInfo(DeviceName.Nexus_10, ScreenOrientation.LANDSCAPE)
4748
);
49+
50+
// The match level determines the way by which Eyes compares the checkpoint image with the baseline image.
51+
// Read more about our available algorithms here: https://applitools.com/docs/eyes/concepts/best-practices/match-levels
52+
config.setMatchLevel(MatchLevel.STRICT);
53+
4854
eyes.setConfiguration(config);
4955
ChromeOptions options = new ChromeOptions().addArguments("--headless=new");
5056
driver = new ChromeDriver(options);

0 commit comments

Comments
 (0)