Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Transak to use more device sensors (fixes E2E tests) #1832

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

lukaw3d
Copy link
Member

@lukaw3d lukaw3d commented Jan 17, 2024

No description provided.

@lukaw3d lukaw3d requested a review from buberdds January 17, 2024 00:11
Copy link

github-actions bot commented Jan 17, 2024

Deployed to Cloudflare Pages

Latest commit: 63e65d06d8d36b36293d626c4055c977198681ed
Status:✅ Deploy successful!
Preview URL: https://78fb0ebe.oasis-wallet.pages.dev

Copy link

codecov bot commented Jan 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8ac76d6) 81.19% compared to head (63e65d0) 81.12%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1832      +/-   ##
==========================================
- Coverage   81.19%   81.12%   -0.08%     
==========================================
  Files         192      192              
  Lines        5053     5053              
  Branches      933      933              
==========================================
- Hits         4103     4099       -4     
- Misses        950      954       +4     
Flag Coverage Δ
cypress 46.05% <ø> (ø)
jest 76.89% <ø> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/app/pages/FiatOnrampPage/index.tsx 0.00% <ø> (ø)

... and 2 files with indirect coverage changes

allow="camera;microphone;fullscreen;payment"
// Expands on https://github.com/Transak/transak-sdk/blob/2ebb3bd/src/index.js#L52
// and somewhat matches https://docs.transak.com/docs/web-integration#embediframe-webapp
allow="accelerometer;camera;microphone;fullscreen;gyroscope;payment"
Copy link
Contributor

@buberdds buberdds Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is weird why they need motion detection.

If we are changing feature policy to make tests happy should we do it only for process?.env?.NODE_ENV === 'test' ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be for video liveness check (does device movement match the video), but the event listeners get attached much earlier by https://api.sardine.ai/assets/loader.min.js

I'm leaning towards increasing permissions, since we don't have insight into whether this decreases users' ability to complete KYC

@lukaw3d lukaw3d merged commit cdf5687 into master Jan 17, 2024
12 checks passed
@lukaw3d lukaw3d deleted the lw/fix-ci-transak branch January 17, 2024 16:33
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.

None yet

2 participants