Commit 5b8e526
committed
fix(test): disable forced advanced auth in adminLoginAndValidate for WebView path
When useWebServerFlow=false, adminLoginAndValidate intends to start with
the in-app WebView so it can reach the Login Options and Login for Admins
menu items. But ensureRegularAuthServer was called without
forceAdvancedAuthentication=false, so the SDK re-launched a Custom Tab
over the WebView after the server re-selection. The Compose hierarchy was
then behind the tab, causing openLoginOptions() to crash with
"No compose hierarchies found in the app".
Pass forceAdvancedAuthentication=useWebServerFlow so that the WebView
path also clears the forced-advanced-auth flag, matching the in-app
WebView surface that topBarPage (a plain LoginPageObject) expects to drive.1 parent b4c41a0 commit 5b8e526
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- native/NativeSampleApps/AuthFlowTester/src/androidTest/java/com/salesforce/samples/authflowtester/testUtility
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
| 471 | + | |
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| |||
0 commit comments