microsoft-authentication-library-common-for-android icon indicating copy to clipboard operation
microsoft-authentication-library-common-for-android copied to clipboard

Draft: Check inbox code validity in Native Auth E2E tests, Fixes AB#3037823

Open rmccahill opened this issue 1 year ago • 2 comments

This PR updates the logic for retrieving a code from the test inbox - the code retrieved will be checked in the calling test to ensure that the retrieved code is valid, since we occasionally get expired codes from the inbox. If a code is invalid, the test is retried, filtering out the emails previously retrieved to ensure we're getting the latest email. If we don't get a valid code after 3 tries, an IllegalStateException will be thrown. The E2E tests will use this new function in this PR: https://github.com/AzureAD/microsoft-authentication-library-for-android/compare/robert/retry-submit-code-e2e-tests

Work Item: AB#3037823

rmccahill avatar Sep 24 '24 11:09 rmccahill

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

github-actions[bot] avatar Sep 24 '24 11:09 github-actions[bot]

✅ Work item link check complete. Description contains link AB#3037823 to an Azure Boards work item.

github-actions[bot] avatar Sep 24 '24 12:09 github-actions[bot]

Closing this PR because substituted from https://github.com/AzureAD/microsoft-authentication-library-common-for-android/pull/2527

nilo-ms avatar Nov 19 '24 10:11 nilo-ms