Added Integration pages for Percy and App Percy for WDIO#12538
Added Integration pages for Percy and App Percy for WDIO#12538christian-bromann merged 16 commits intowebdriverio:mainfrom
Conversation
christian-bromann
left a comment
There was a problem hiding this comment.
Taking a first pass on this.
website/_sidebars.json
Outdated
| "visual-testing/integrate-with-percy", | ||
| "visual-testing/integrate-with-app-percy" |
There was a problem hiding this comment.
Can we have Percy integration as its own category?
| "visual-testing/integrate-with-percy", | |
| "visual-testing/integrate-with-app-percy" | |
| { | |
| "type": "category", | |
| "label": "Integrate with Percy", | |
| "items": [ | |
| "visual-testing/integrate-with-percy", | |
| "visual-testing/integrate-with-app-percy" | |
| ] | |
| }, |
There was a problem hiding this comment.
BrowserStack's Percy and App Percy are two distinct products that fall under the larger Visual Testing space/domain. Percy is for visually testing web apps, whereas App Percy is for testing mobile apps. So, we would like this content to reside under the Visual Testing category.
There was a problem hiding this comment.
This suggestion will keep Percy under the visual testing section, however I would like to have all related Percy content within a single category. We could call it:
Integrate with Percy
- for web environments
- for mobile apps
something along these lines. People are rather focused on the use case and not the branding itself and as of now these documents don't provide a clear differentiation.
| The following example uses the percySnapshot() function in the async mode: | ||
|
|
||
| ```sh | ||
| const percySnapshot = require('@percy/webdriverio'); |
There was a problem hiding this comment.
Let's use ESM syntax here to stay consistent with the other examples on the docs. Feel free to have a code example with ESM and CJS as long as ESM is the default selection
There was a problem hiding this comment.
Incorporated comment.
| ```sh | ||
| const { remote } = require('webdriverio'); | ||
| const percySnapshot = require('@percy/webdriverio'); | ||
| (async () => { |
There was a problem hiding this comment.
Same here, the ESM version should not require an IIFE as root level await is supported
There was a problem hiding this comment.
Incorporated comment
| @@ -0,0 +1,111 @@ | |||
| --- | |||
| id: integrate-with-app-percy | |||
| title: Integrate with App Percy | |||
There was a problem hiding this comment.
How is this document different from the other. I've never used Percy so both docs seem to describe the same thing to me just slightly different. Can we make sure to give the documents better names that clarify the differentiation.
There was a problem hiding this comment.
Thanks for asking. BrowserStack's Percy and App Percy are two distinct products that fall under the larger Visual Testing space/domain. If you want to compare visual differences between different versions/builds of your web app (on desktop and mobile browsers), you would use Percy.
If you want to compare visual differences between different versions of your mobile apps, then you should choose App Percy.
The similarities are because they both are visual testing platforms.
Hope this clarifies.
There was a problem hiding this comment.
Changed the titles:
For Percy: Run visual tests on your web apps with Percy
For App Percy: Run visual tests on your mobile apps with App Percy
There was a problem hiding this comment.
Can we please make this very clear in the documents? I suggested above even a better title for the page, e.g. for web environments vs for mobile applications.
Co-authored-by: Christian Bromann <git@bromann.dev>
| WebdriverIO supports cross-browser visual testing natively using App Percy. You can use App Percy for visual testing of native mobile applications. | ||
| The benefits of utilizing App Percy for visual testing include the following: | ||
|
|
||
| - Consistency: Promotes consistent user experience by identifying visual discrepancies early in the development process. | ||
| - Efficiency: Improves efficiency by reducing the time and effort required to manually spot visual regressions. | ||
| - Integrations: Percy integrates with popular tools and services like GitHub, GitLab, Bitbucket, and more. | ||
| - Collaboration: Improves collaboration between developers, designers, and QA teams by providing a visual representation of changes. | ||
| - Prevent regression: Prevents you from experiencing unintended visual regressions. | ||
|
|
||
| ## How does Percy work? | ||
|
|
||
| Percy compares new snapshots against relevant baselines to detect visual changes. Percy manages baseline selection across branches so your tests are always relevant. If visual changes are detected, Percy highlights and groups the resulting diffs for you to review. |
There was a problem hiding this comment.
This whole section is almost 1:1 the same to the other document. Let's maybe have a general page for Percy and then create 2 documents going into the specifics of using Percy for web environments and one for mobile applications
There was a problem hiding this comment.
Done. I have incorporated the suggested comments.
| @@ -0,0 +1,144 @@ | |||
| --- | |||
| id: integrate-with-percy | |||
| title: Run visual tests on your web apps with Percy | |||
There was a problem hiding this comment.
instead of:
Run visual tests on your web apps with Percy
Run visual tests on your mobile apps with App Percy
Let's organize the content as:
Integrate with Percy
- For Web Apps
- For Mobile Apps
There was a problem hiding this comment.
Done. I have incorporated the suggested comments.
christian-bromann
left a comment
There was a problem hiding this comment.
Some minor formatting issues which I will go ahead and merge, the rest looks good to me 👍 Thanks a lot!
|
@KhushbuRander I will manually backport this patcht to |
* cc * c * Percy changes * Percy changes-1 * Update website/docs/visual-testing/integrate-with-app-percy.md Co-authored-by: Christian Bromann <git@bromann.dev> * Comment fixes * Update integrate-with-app-percy.md * Update integrate-with-percy.md * Update integrate-with-app-percy.md * Update integrate-with-percy.md * Added Percy overview page * Update website/docs/visual-testing/integrate-with-app-percy.md * Update website/docs/visual-testing/integrate-with-percy.md * Update website/docs/visual-testing/integrate-with-percy.md * Update website/docs/visual-testing/integrate-with-percy.md --------- Co-authored-by: Christian Bromann <git@bromann.dev>
…#12538) * cc * c * Percy changes * Percy changes-1 * Update website/docs/visual-testing/integrate-with-app-percy.md Co-authored-by: Christian Bromann <git@bromann.dev> * Comment fixes * Update integrate-with-app-percy.md * Update integrate-with-percy.md * Update integrate-with-app-percy.md * Update integrate-with-percy.md * Added Percy overview page * Update website/docs/visual-testing/integrate-with-app-percy.md * Update website/docs/visual-testing/integrate-with-percy.md * Update website/docs/visual-testing/integrate-with-percy.md * Update website/docs/visual-testing/integrate-with-percy.md --------- Co-authored-by: Christian Bromann <git@bromann.dev>
Proposed changes
Types of changes
Checklist
Backport Request
//: # (The current
mainbranch is the development branch for WebdriverIO v9. If your change should be released to the current major version of WebdriverIO (v8), please raise another PR with the same changes against thev8branch.)v9and doesn't need to be back-ported#XXXXXFurther comments
Reviewers: @webdriverio/project-committers