Skip to content

Commit 8e0bef1

Browse files
committed
feat: add accessToken parameter to deep links to bypass login during mobile testing
1 parent 4827e82 commit 8e0bef1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

index.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,9 @@ <h2>Automation Notes</h2>
405405
</li>
406406
<li class="list-item">
407407
<strong>Mobile atomic entry:</strong> Open any screen directly via
408-
<code>omnipizza://</code> deep links after API hydration — no full
409-
user journey required. See
408+
<code>omnipizza://</code> deep links after API hydration. Pass
409+
<code>accessToken=&lt;jwt&gt;</code> to inject auth at deep link time
410+
and bypass the login screen entirely. See
410411
<a href="./ATOMIC_MOBILE_TESTING.md">ATOMIC_MOBILE_TESTING.md</a>.
411412
</li>
412413
<li class="list-item">
@@ -441,9 +442,9 @@ <h3 style="margin-top: 3rem">Mobile Deep Links</h3>
441442
<pre class="code-window" data-title="mobile/deep-links.sh"><code><span class="tok-comment"># Reset session before test suite</span>
442443
<span class="tok-cmd">xcrun simctl openurl booted</span> <span class="tok-val">"omnipizza://login?resetSession=true"</span>
443444

444-
<span class="tok-comment"># Open Checkout with API-seeded cart (MX market)</span>
445+
<span class="tok-comment"># Open Checkout with API-seeded cart + injected token (no login needed)</span>
445446
<span class="tok-cmd">adb shell am start -W -a android.intent.action.VIEW</span> \
446-
<span class="tok-val">-d "omnipizza://checkout?market=MX&amp;lang=es&amp;hydrateCart=true"</span> \
447+
<span class="tok-val">-d "omnipizza://checkout?market=MX&amp;lang=es&amp;hydrateCart=true&amp;accessToken=$TOKEN"</span> \
447448
<span class="tok-path">com.omnipizza.app</span>
448449

449450
<span class="tok-comment"># Open Pizza Builder with specific pizza + size</span>

0 commit comments

Comments
 (0)