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

feat(venmo): allow trusted domains #439

Merged
merged 5 commits into from
Jun 12, 2023
Merged

feat(venmo): allow trusted domains #439

merged 5 commits into from
Jun 12, 2023

Conversation

mnicpt
Copy link
Contributor

@mnicpt mnicpt commented Jun 10, 2023

Allows trusted domains to be specified for passing props to children with different domain.
https://paypal.atlassian.net/browse/DTCHKINT-1568

@mnicpt mnicpt requested a review from a team as a code owner June 10, 2023 19:31
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (2ef6fdb) 95.57% compared to head (6612efd) 95.58%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #439   +/-   ##
=======================================
  Coverage   95.57%   95.58%           
=======================================
  Files          18       18           
  Lines        1220     1222    +2     
=======================================
+ Hits         1166     1168    +2     
  Misses         54       54           
Impacted Files Coverage Δ
src/component/props.js 93.93% <ø> (ø)
src/child/props.js 100.00% <100.00%> (ø)
src/parent/parent.js 95.63% <100.00%> (+<0.01%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

src/child/props.js Outdated Show resolved Hide resolved
src/parent/parent.js Outdated Show resolved Hide resolved
@@ -813,6 +813,73 @@ describe("zoid props cases", () => {
});
});

it("should pass a trustedDomain prop and have it populate on the child", () => {
Copy link
Member

Choose a reason for hiding this comment

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

we should add a test where the domains don't match

url: "mock://www.child.com/base/test/windows/child/index.htm",
trustedDomains: ["mock://www.different-domain.com"],

@mnicpt mnicpt merged commit 5f3bf00 into main Jun 12, 2023
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.

None yet

3 participants