Skip to content

test: handle optional playwright browser in currency keypad test - #612

Merged
khaira777 merged 2 commits into
mainfrom
fix/test-playwright-graceful-launch
Sep 2, 2026
Merged

khaira777 merged 2 commits into
mainfrom
fix/test-playwright-graceful-launch

Conversation

@khaira777

Copy link
Copy Markdown
Contributor

Allows payment modal currency adapter test to run in unit test runners where playwright browsers are not installed by testing static markup directly and making browser launch optional.

@khaira777
khaira777 enabled auto-merge (squash) September 2, 2026 21:20
@greptile-apps

greptile-apps Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR allows currency-keypad tests to run without an installed Playwright browser while preserving static-markup coverage.

  • Adds static-markup assertions for currency and percentage-discount decimal keys.
  • Makes Playwright launch optional unless visual evidence is explicitly required.
  • Keeps browser page and DOM assertion failures outside the optional-launch catch so they fail the test.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
tests/payment-modal-currency-adapter.test.ts Adds browser-independent markup checks and correctly limits fallback handling to Playwright launch failures.

Reviews (2): Last reviewed commit: "test: isolate browser launch errors and ..." | Re-trigger Greptile

@khaira777
khaira777 merged commit 339311a into main Sep 2, 2026
15 checks passed
@khaira777
khaira777 deleted the fix/test-playwright-graceful-launch branch September 2, 2026 21:29
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.

1 participant