File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/test/java/com/applitools/example Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 22
33import com .applitools .eyes .BatchInfo ;
44import com .applitools .eyes .EyesRunner ;
5+ import com .applitools .eyes .MatchLevel ;
56import com .applitools .eyes .RectangleSize ;
67import com .applitools .eyes .TestResultsSummary ;
78import 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 );
You can’t perform that action at this time.
0 commit comments