Skip to content

Commit b50628f

Browse files
committed
LAYOUT match level
1 parent 6c7fccf commit b50628f

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
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=file:///Users/angie/workspace/automated_visual_testing/website/index.html
4+
site.url=https://the-internet.herokuapp.com/dynamic_content
55

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

src/test/java/DynamicTests.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 DynamicTests extends BaseTests {
5+
6+
@Test
7+
public void testDynamicContent(){
8+
validateWindow();
9+
}
10+
}

src/test/java/base/BaseTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ private static void initiateEyes(){
4848
}
4949

5050
public void validateWindow(){
51-
eyes.open(driver, "Automation Bookstore", Thread.currentThread().getStackTrace()[2].getMethodName());
52-
eyes.setMatchLevel(MatchLevel.CONTENT);
51+
eyes.open(driver, "The Internet", Thread.currentThread().getStackTrace()[2].getMethodName());
52+
eyes.setMatchLevel(MatchLevel.LAYOUT);
5353
eyes.checkWindow();
5454
eyes.close();
5555
}

website/css/listview-grid.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<<<<<<< HEAD
8888
background: rgba(153,0,153,.85);
8989
=======
90-
background: /*rgba(153,0,153,.85);*/ #ff0000;
90+
background: rgba(153,0,153,.85);
9191
>>>>>>> CONTENT match level
9292
-webkit-border-top-right-radius: inherit;
9393
border-top-right-radius: inherit;

0 commit comments

Comments
 (0)