feat(advanced): PER-8195 Phase 2 — advanced example for io.percy:percy-appium-app#20
Draft
Shivanshu-07 wants to merge 1 commit into
Draft
feat(advanced): PER-8195 Phase 2 — advanced example for io.percy:percy-appium-app#20Shivanshu-07 wants to merge 1 commit into
Shivanshu-07 wants to merge 1 commit into
Conversation
…y-appium-app Adds advanced/ exercising the full applicable App Percy Java SDK feature surface. 9 JUnit 5 @test methods in AdvancedTest.java exercising the Map<String, Object> options overload: device_name + orientation, fullscreen + status_bar/nav_bar heights, ignore regions via xpath / appium element / custom bbox, consider regions via xpath, sync mode, test_case + labels, build metadata via env (PERCY_PROJECT, PERCY_BUILD, DEVICE, OS_VERSION, APP), PERCY_BRANCH / PERCY_COMMIT override. Web-only options (widths, percyCSS, etc.) marked N/A. CI: workflow_dispatch-only — App Percy CI requires a real BrowserStack device session. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Comment on lines
+12
to
+45
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| defaults: | ||
| run: | ||
| working-directory: advanced | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-java@v3 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: 11 | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: 18 | ||
| - name: Sanity-check BrowserStack secrets | ||
| env: | ||
| AA_USERNAME: ${{ secrets.AA_USERNAME }} | ||
| AA_ACCESS_KEY: ${{ secrets.AA_ACCESS_KEY }} | ||
| run: | | ||
| if [ -z "$AA_USERNAME" ] || [ -z "$AA_ACCESS_KEY" ]; then | ||
| echo "::error::AA_USERNAME / AA_ACCESS_KEY repo secrets are required for the advanced App Percy job." | ||
| exit 1 | ||
| fi | ||
| - name: Install advanced/ dependencies | ||
| run: make install | ||
| - name: Run mvn test advanced against BrowserStack | ||
| env: | ||
| AA_USERNAME: ${{ secrets.AA_USERNAME }} | ||
| AA_ACCESS_KEY: ${{ secrets.AA_ACCESS_KEY }} | ||
| APP: ${{ secrets.APP_BS_URL }} | ||
| PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | ||
| PERCY_BRANCH: ${{ github.ref_name }} | ||
| PERCY_COMMIT: ${{ github.sha }} | ||
| run: make test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an
advanced/example covering the full applicable App Percy Java SDK feature surface. 9 JUnit 5@Testmethods inAdvancedTest.javaexercising theMap<String, Object>options overload:device_nameoverride +orientationhandlingfullscreen+status_bar_height+nav_bar_heightignore_regions_xpaths/ignore_region_appium_elements/custom_ignore_regionsconsider_regions_xpathssyncmodetest_case+labelsmetadataPERCY_PROJECT/PERCY_BUILD/DEVICE/OS_VERSION/APP)PERCY_BRANCH/PERCY_COMMIToverrideWeb-only options (widths, percyCSS, etc.) marked
N/Ainmatrix.yml.Issue: PER-8195. Parent: percy/percy-public-repos-parent#1.
CI shape
workflow_dispatch-only — App Percy CI requires a real BrowserStack device session. Forks/Dependabot can't trigger. Needs repo secretsAA_USERNAME/AA_ACCESS_KEY/APP_BS_URL/PERCY_TOKEN.Test plan
Advanced — App Percyworkflow manually with hub secrets set.🤖 Generated with Claude Code