Skip to content

Commit 0bed3f9

Browse files
release 2.1.2-beta.0 (#303)
* Added PERCY_RESPONSIVE_CAPTURE_RELOAD_PAGE and RESPONSIVE_CAPTURE_MIN_HEIGHT * Added Cross Origin Iframe Capture
1 parent b4412ae commit 0bed3f9

4 files changed

Lines changed: 25 additions & 3 deletions

File tree

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>io.percy</groupId>
77
<artifactId>percy-java-selenium</artifactId>
8-
<version>2.1.1</version>
8+
<version>2.1.2-beta.0</version>
99
<packaging>jar</packaging>
1010

1111
<name>${project.groupId}:${project.artifactId}</name>
@@ -32,7 +32,7 @@
3232
<connection>scm:git:git://github.com/percy/percy-java-selenium.git</connection>
3333
<developerConnection>scm:git:https://github.com/percy/percy-java-selenium.git</developerConnection>
3434
<url>https://github.com/percy/percy-java-selenium/tree/master</url>
35-
<tag>v2.0.0</tag>
35+
<tag>v2.1.2-beta.0</tag>
3636
</scm>
3737

3838
<properties>

src/main/java/io/percy/selenium/Environment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
class Environment {
1212
private WebDriver driver;
13-
private final static String SDK_VERSION = "2.1.1";
13+
private final static String SDK_VERSION = "2.1.2-beta.0";
1414
private final static String SDK_NAME = "percy-java-selenium";
1515

1616
Environment(WebDriver driver) {

src/test/java/io/percy/selenium/SdkTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ public void takesMultipleSnapshotsInOneTestCase() {
113113
percy.snapshot("Multiple snapshots in one test case -- #2", Arrays.asList(768, 992, 1200));
114114
}
115115

116+
@Test
117+
public void takesSnapshotWithCrossOriginIframe() {
118+
driver.get(TEST_URL + "/cors-iframe.html");
119+
percy.snapshot("Snapshot with cross-origin iframe");
120+
}
121+
116122
@Test
117123
public void snapshotALiveHTTPSite() {
118124
driver.get("http://example.com");
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>CORS Iframe Test</title>
6+
<style>
7+
body { font-family: sans-serif; padding: 20px; }
8+
iframe { width: 100%; height: 800px; border: 1px solid #ccc; margin-top: 16px; }
9+
</style>
10+
</head>
11+
<body>
12+
<h1>Page with cross-origin iframe</h1>
13+
<p>The iframe below loads an external origin and is used to test Percy CORS iframe capture.</p>
14+
<iframe src="https://todomvc.com/examples/react/dist/" title="Cross-origin iframe"></iframe>
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)