-
Notifications
You must be signed in to change notification settings - Fork 673
[Link in FlowController] Consumes backend linkSettings and removes client flag #10891
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
base: master
Are you sure you want to change the base?
Conversation
2928d2a
to
632c077
Compare
Diffuse output:
APK
DEX
|
4873545
to
ef1f31a
Compare
/** | ||
* Provider interface for Link feature settings and behaviors, handling | ||
* the logic for determining when to show special Link UI elements or trigger automatic | ||
* behaviors to enhance the Link payment experience. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initially missed this class and then created LinkProminenceFeatureProvider
. Deleted the latter and added docs to LinkGate
so this doesn't happen to others in the future.
@Test | ||
fun `showRuxInFlowController - true when useNativeLink is true and backend flag is false`() { | ||
val gate = gate( | ||
isLiveMode = true, | ||
useAttestationEndpoints = true, | ||
disableRuxInFlowController = false | ||
) | ||
|
||
assertThat(gate.showRuxInFlowController).isTrue() | ||
} | ||
|
||
@Test | ||
fun `showRuxInFlowController - false when livemode and useNativeLink and but backend flag is true`() { | ||
val gate = gate( | ||
isLiveMode = true, | ||
useAttestationEndpoints = true, | ||
disableRuxInFlowController = true | ||
) | ||
|
||
assertThat(gate.showRuxInFlowController).isFalse() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are identical to the first two, no?
} | ||
|
||
@Test | ||
fun `showRuxInFlowController - returns false when useNativeLink is true but backend flag is true`() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fun `showRuxInFlowController - returns false when useNativeLink is true but backend flag is true`() { | |
fun `showRuxInFlowController - returns false when useNativeLink is true but disableRuxInFlowController is true`() { |
} | ||
|
||
@Test | ||
fun `showRuxInFlowController - false when useNativeLink is false regardless of backend flag`() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fun `showRuxInFlowController - false when useNativeLink is false regardless of backend flag`() { | |
fun `showRuxInFlowController - false when useNativeLink is false regardless of disableRuxInFlowController`() { |
linkSettings
and removes client flag
Summary
LinkProminenceFeatureProvider
and usesLinkGate
to provide the RUX in FlowController enablement.Motivation
Testing
Screenshots
Changelog