Skip to content

Commit

Permalink
docs url update (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
prklm10 authored Jun 24, 2024
1 parent b7abdf3 commit 0c94380
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ assignees: ''
There are common setup gotchas that happen with Percy's SDKs, it would be worth reading
the debugging document, which might already answer your question:
https://docs.percy.io/docs/debugging-sdk
https://www.browserstack.com/docs/percy/integrate/percy-sdk-workflow#debugging-sdks
## Reach out to Percy support instead?
Expand Down Expand Up @@ -43,7 +43,7 @@ If necessary, describe the problem you have been experiencing in more detail.
## Debug logs

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

Please do not trim or edit these logs, often times there are hints in the full
logs that help debug what is going on.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ $ percy exec -- [python test command]

- `page` (**required**) - A playwright page instance
- `name` (**required**) - The snapshot name; must be unique to each snapshot
- `**kwargs` - [See per-snapshot configuration options](https://docs.percy.io/docs/cli-configuration#per-snapshot-configuration)
- `**kwargs` - [See per-snapshot configuration options](https://www.browserstack.com/docs/percy/take-percy-snapshots/overview#per-snapshot-configuration)


## Percy on Automate
Expand Down Expand Up @@ -137,4 +137,4 @@ $ percy exec -- [python test command]
[percy] Done!
```

Refer to docs here: [Percy on Automate](https://docs.percy.io/docs/integrate-functional-testing-with-visual-testing)
Refer to docs here: [Percy on Automate](https://www.browserstack.com/docs/percy/integrate/functional-and-visual)
6 changes: 3 additions & 3 deletions percy/screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def is_percy_enabled():
f"{LABEL} You may be using @percy/agent "
"which is no longer supported by this SDK. "
"Please uninstall @percy/agent and install @percy/cli instead. "
"https://docs.percy.io/docs/migrating-to-percy-cli"
"https://www.browserstack.com/docs/percy/migration/migrate-to-cli"
)
return False

Expand Down Expand Up @@ -73,7 +73,7 @@ def percy_snapshot(page, name, **kwargs):
"percy_snapshot(). "
"Please use percy_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"
"refer https://www.browserstack.com/docs/percy/integrate/functional-and-visual"
)

try:
Expand Down Expand Up @@ -126,7 +126,7 @@ def percy_automate_screenshot(page, name, options=None, **kwargs):
"percy_screenshot(). Please use percy_snapshot() function for taking screenshot. "
"percy_screenshot() should be used only while using Percy with Automate. "
"For more information on usage of percy_snapshot(), "
"refer doc for your language https://docs.percy.io/docs/end-to-end-testing"
"refer doc for your language https://www.browserstack.com/docs/percy/integrate/overview"
)

if options is None:
Expand Down
6 changes: 3 additions & 3 deletions tests/test_screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def test_disables_snapshots_when_the_healthcheck_version_is_missing(self):
mock_print.assert_called_with(
f"{LABEL} You may be using @percy/agent which is no longer supported by this SDK. "
"Please uninstall @percy/agent and install @percy/cli instead. "
"https://docs.percy.io/docs/migrating-to-percy-cli"
"https://www.browserstack.com/docs/percy/migration/migrate-to-cli"
)

self.assertEqual(httpretty.last_request().path, "/percy/healthcheck")
Expand Down Expand Up @@ -253,8 +253,8 @@ def test_raise_error_poa_token_with_snapshot(self):
"Invalid function call - "
"percy_snapshot(). Please use percy_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",
" For more information on usage of PercyScreenshot, refer https://www.browserstack.com/"
"docs/percy/integrate/functional-and-visual",
str(context.exception),
)

Expand Down

0 comments on commit 0c94380

Please sign in to comment.