Skip to content

test(percy): add no-leak regression guard for Percy setup handlers#304

Merged
ruturaj-browserstack merged 1 commit into
browserstack:mainfrom
SavioBS629:PMAA-100-percy-token-leak-tests
May 28, 2026
Merged

test(percy): add no-leak regression guard for Percy setup handlers#304
ruturaj-browserstack merged 1 commit into
browserstack:mainfrom
SavioBS629:PMAA-100-percy-token-leak-tests

Conversation

@SavioBS629
Copy link
Copy Markdown
Collaborator

@SavioBS629 SavioBS629 commented May 28, 2026

PR description claimed tests/tools/percyTokenLeak.test.ts was added, but the file was not in the diff

This PR

Adds the missing tests/tools/percyTokenLeak.test.ts. 4 tests pin the
no-leak contract on the three Percy handlers:

  • placeholder <your Percy project token> must be present in tool output
  • no high-entropy literal after PERCY_TOKEN= (regex guard)
  • meta-test: the guard regex itself must catch a real-looking token and
    must not match the placeholder

Test count: 171 → 175. Build clean.

@SavioBS629 SavioBS629 changed the title test(percy): add no-leak regression guard for Percy setup handlers (PMAA-100) test(percy): add no-leak regression guard for Percy setup handlers May 28, 2026
@ruturaj-browserstack ruturaj-browserstack merged commit a08260b into browserstack:main May 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants