-
Notifications
You must be signed in to change notification settings - Fork 424
feat(W-23721537): speed up AuthFlowTester UI tests via launch-arg driven SDK reset #4121
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
Merged
wmathurin
merged 19 commits into
forcedotcom:dev
from
wmathurin:W-23721537-authflowtester-launch-arg-reset
Aug 6, 2026
Merged
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
54268e0
feat(W-23721537): speed up AuthFlowTester UI tests via launch-arg dri…
wmathurin 7fb62cf
fix(W-23721537): remove skipLogoutAtTearDown calls from ForceAdvanced…
wmathurin 8b3eedf
fix: export raw tokenFormat in credentials JSON (not display-substitu…
wmathurin 29d065c
fix(W-23721537): restartAndValidateUser must use restart() not inline…
wmathurin 14bff4e
perf: reduce hasHost timeout from long(10s) to short(2s) — host list …
wmathurin 0a38bfe
fix(tests): nil forceAdvancedAuthentication should mean WebView, not …
wmathurin 31d093b
fix(tests): pass isMultiUser to switchToUserAndValidate; add isRtr to…
wmathurin 102bc39
fix(tests): thread isRtr through validateUser; add isMultiUser to mig…
wmathurin 55b5ed9
fix(auth): clear per-user feature flags on UI test reset
wmathurin e8e3011
fix(tests): fix two post-reset assertion failures in auth flow tests
wmathurin 3cf3c42
refactor(tests): remove isRtr from restartAndValidateUser
wmathurin 75161a2
refactor(tests): make forceAdvancedAuthentication non-nullable (Bool …
wmathurin fbf14b5
test(legacy): add WebServerFlow_InAppWebView variants for CA opaque s…
wmathurin a8ceed7
refactor: extract resetAuthFlags helper in SalesforceSDKManager
wmathurin 8368803
fix(tests): default forceAdvancedAuthentication to false in migrateAn…
wmathurin 89abe3d
fix(auth): preserve BW feature flag through refresh token migration
wmathurin e70d1d3
fix(tests): thread isRtr through restartAndValidateUser for UA flag c…
wmathurin 4a2eed8
fix(tests): check LoginViewController nav bar, not WebView text field…
wmathurin bd0347e
fix(tests): login User A via WebView so BW flag is absent in testAdva…
wmathurin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2182,6 +2182,9 @@ - (void)finalizeAuthCompletion:(SFSDKAuthSession *)authSession { | |
| SFOAuthType completedAuthType = authSession.oauthCoordinator.authInfo.authType; | ||
| if (completedAuthType == SFOAuthTypeAdvancedBrowser) { | ||
| [SFSDKAppFeatureMarkers registerAppFeature:kSFAppFeatureSafariBrowserForLogin forUser:userAccount]; | ||
| } else if (completedAuthType == SFOAuthTypeRefreshTokenMigration) { | ||
| // Migration exchanges the token but does not change how the user originally | ||
| // authenticated. Preserve the existing per-user BW flag rather than clearing it. | ||
|
Comment on lines
+2185
to
+2187
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch. |
||
| } else { | ||
| [SFSDKAppFeatureMarkers unregisterAppFeature:kSFAppFeatureSafariBrowserForLogin forUser:userAccount]; | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.