Skip to content

Commit e246873

Browse files
authored
docs url update (#288)
1 parent 7762be5 commit e246873

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ assignees: ''
1111
1212
There are common setup gotchas that happen with Percy's SDKs, it would be worth reading
1313
the debugging document, which might already answer your question:
14-
https://docs.percy.io/docs/debugging-sdk
14+
https://www.browserstack.com/docs/percy/integrate/percy-sdk-workflow#debugging-sdks
1515
1616
## Reach out to Percy support instead?
1717
@@ -43,7 +43,7 @@ If necessary, describe the problem you have been experiencing in more detail.
4343
## Debug logs
4444

4545
If you are reporting a bug, _always_ include logs! [Give the "Debugging SDKs"
46-
document a quick read for how to gather logs](https://docs.percy.io/docs/debugging-sdks#debugging-sdks)
46+
document a quick read for how to gather logs](https://www.browserstack.com/docs/percy/integrate/percy-sdk-workflow#debugging-sdks)
4747

4848
Please do not trim or edit these logs, often times there are hints in the full
4949
logs that help debug what is going on.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ node_modules/
1111
.project
1212
.vscode
1313
.settings
14-
14+
.DS_Store

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,4 +232,4 @@ $ percy exec -- [java test command]
232232
[percy] Done!
233233
```
234234

235-
Refer to docs here: [Percy on Automate](https://docs.percy.io/docs/integrate-functional-testing-with-visual-testing)
235+
Refer to docs here: [Percy on Automate](https://www.browserstack.com/docs/percy/integrate/functional-and-visual)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public JSONObject snapshot(String name, @Nullable List<Integer> widths, Integer
173173

174174
public JSONObject snapshot(String name, Map<String, Object> options) {
175175
if (!isPercyEnabled) { return null; }
176-
if ("automate".equals(sessionType)) { throw new RuntimeException("Invalid function call - snapshot(). Please use screenshot() function while using Percy with Automate. For more information on usage of PercyScreenshot, refer https://docs.percy.io/docs/integrate-functional-testing-with-visual-testing"); }
176+
if ("automate".equals(sessionType)) { throw new RuntimeException("Invalid function call - snapshot(). Please use screenshot() function while using Percy with Automate. For more information on usage of PercyScreenshot, refer https://www.browserstack.com/docs/percy/integrate/functional-and-visual"); }
177177

178178
Map<String, Object> domSnapshot = null;
179179

@@ -207,7 +207,7 @@ public JSONObject screenshot(String name) throws UnsupportedOperationException {
207207
*/
208208
public JSONObject screenshot(String name, Map<String, Object> options) throws UnsupportedOperationException {
209209
if (!isPercyEnabled) { return null; }
210-
if (!"automate".equals(sessionType)) { throw new RuntimeException("Invalid function call - screenshot(). Please use snapshot() function for taking screenshot. screenshot() should be used only while using Percy with Automate. For more information on usage of snapshot(), refer doc for your language https://docs.percy.io/docs/end-to-end-testing"); }
210+
if (!"automate".equals(sessionType)) { throw new RuntimeException("Invalid function call - screenshot(). Please use snapshot() function for taking screenshot. screenshot() should be used only while using Percy with Automate. For more information on usage of snapshot(), refer doc for your language https://www.browserstack.com/docs/percy/integrate/overview"); }
211211

212212
List<String> driverArray = Arrays.asList(driver.getClass().toString().split("\\$")); // Added to handle testcase (mocked driver)
213213
Iterator<String> driverIterator = driverArray.iterator();
@@ -275,7 +275,7 @@ private boolean healthcheck() {
275275
log("You may be using @percy/agent" +
276276
"which is no longer supported by this SDK." +
277277
"Please uninstall @percy/agent and install @percy/cli instead." +
278-
"https://docs.percy.io/docs/migrating-to-percy-cli"
278+
"https://www.browserstack.com/docs/percy/migration/migrate-to-cli"
279279
);
280280

281281
return false;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,14 @@ public void takeScreenshotWithOptions() {
182182
public void takeSnapshotThrowErrorForPOA() {
183183
percy.sessionType = "automate";
184184
Throwable exception = assertThrows(RuntimeException.class, () -> percy.snapshot("Test"));
185-
assertEquals("Invalid function call - snapshot(). Please use screenshot() function while using Percy with Automate. For more information on usage of PercyScreenshot, refer https://docs.percy.io/docs/integrate-functional-testing-with-visual-testing", exception.getMessage());
185+
assertEquals("Invalid function call - snapshot(). Please use screenshot() function while using Percy with Automate. For more information on usage of PercyScreenshot, refer https://www.browserstack.com/docs/percy/integrate/functional-and-visual", exception.getMessage());
186186
}
187187

188188
@Test
189189
public void takeScreenshotThrowErrorForWeb() {
190190
RemoteWebDriver mockedDriver = mock(RemoteWebDriver.class);
191191
percy = spy(new Percy(mockedDriver));
192192
Throwable exception = assertThrows(RuntimeException.class, () -> percy.screenshot("Test"));
193-
assertEquals("Invalid function call - screenshot(). Please use snapshot() function for taking screenshot. screenshot() should be used only while using Percy with Automate. For more information on usage of snapshot(), refer doc for your language https://docs.percy.io/docs/end-to-end-testing", exception.getMessage());
193+
assertEquals("Invalid function call - screenshot(). Please use snapshot() function for taking screenshot. screenshot() should be used only while using Percy with Automate. For more information on usage of snapshot(), refer doc for your language https://www.browserstack.com/docs/percy/integrate/overview", exception.getMessage());
194194
}
195195
}

0 commit comments

Comments
 (0)