Skip to content

Commit cf093c2

Browse files
committed
full page visual test
1 parent 954c7b4 commit cf093c2

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

resources/test.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
################
22
# MY APP #
33
################
4-
site.url=https://the-internet.herokuapp.com/dynamic_content
4+
site.url=https://the-internet.herokuapp.com/large
55

66
################
77
# SELENIUM #

src/test/java/ScrollTests.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import base.BaseTests;
2+
import org.junit.Test;
3+
4+
public class ScrollTests extends BaseTests {
5+
6+
@Test
7+
public void testLargeDom() {
8+
validateWindow();
9+
}
10+
}

src/test/java/base/BaseTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package base;
22

3-
import com.applitools.eyes.MatchLevel;
43
import com.applitools.eyes.selenium.Eyes;
54
import org.junit.AfterClass;
65
import org.junit.BeforeClass;
@@ -11,6 +10,7 @@
1110
import java.io.FileInputStream;
1211
import java.util.Properties;
1312

13+
1414
public class BaseTests {
1515

1616
protected static WebDriver driver;
@@ -45,7 +45,7 @@ private static void initiateEyes(){
4545

4646
public void validateWindow(){
4747
eyes.open(driver, "The Internet", Thread.currentThread().getStackTrace()[2].getMethodName());
48-
eyes.setMatchLevel(MatchLevel.LAYOUT);
48+
eyes.setForceFullPageScreenshot(true);
4949
eyes.checkWindow();
5050
eyes.close();
5151
}

0 commit comments

Comments
 (0)