From 0c94380628f1eada7e867a214d7b60be74efacb2 Mon Sep 17 00:00:00 2001 From: Pradum Kumar Date: Mon, 24 Jun 2024 14:58:00 +0530 Subject: [PATCH] docs url update (#11) --- .github/ISSUE_TEMPLATE/bug_report.md | 4 ++-- README.md | 4 ++-- percy/screenshot.py | 6 +++--- tests/test_screenshot.py | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 789a142..936ad2d 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -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? @@ -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. diff --git a/README.md b/README.md index 40b5c57..0fd9bd2 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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) diff --git a/percy/screenshot.py b/percy/screenshot.py index 39b894d..d5498e7 100644 --- a/percy/screenshot.py +++ b/percy/screenshot.py @@ -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 @@ -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: @@ -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: diff --git a/tests/test_screenshot.py b/tests/test_screenshot.py index 561803f..1f32fa8 100644 --- a/tests/test_screenshot.py +++ b/tests/test_screenshot.py @@ -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") @@ -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), )