Skip to content

[net11] Hide Issue28986 keyboards without Appium's BACK fallback - #40412

Merged
kubaflo merged 1 commit into
net11from
kubaflo-net11-issue28986-esc-only-keyboard
Nov 19, 2026
Merged

kubaflo merged 1 commit into
net11from
kubaflo-net11-issue28986-esc-only-keyboard

Conversation

@kubaflo

@kubaflo kubaflo commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Target Branch

This PR is for Initial base
New features, API changes, or .NET 12 work (including .NET 12 fixes) main
.NET 11 servicing fixes net11, for review
Older servicing, release integration, infrastructure, or documentation The branch designated for that work

For .NET 11 fixes, only a maintainer retargets the approved PR to the active
inflight lane and merges it after CI validates that final base. Do not merge
individual fixes directly into net11; agents must not retarget or merge.

Description of Change

Test-only. On Android, App.DismissKeyboard() calls Appium's hideKeyboard. That sends ESC, and if the IME is still reported as shown about a second later, it also sends BACK. When the IME hide takes longer than that, BACK closes the test page's MainActivity and the launcher comes to the front. The next element lookup then throws a NullReferenceException or times out.

This is the same mechanism as #40361 (Issue35119). There, BACK cancelled a prompt.

The fix replaces the three Android DismissKeyboard() calls in Issue28986_ContentPage (SafeAreaPerEdgeValidation, SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle) and Issue28986.SafeAreaPerEdgeValidation with a helper:

  • It waits for the keyboard to show.
  • It sends only ESC, which the visible IME consumes.
  • It asserts that the keyboard hides.

iOS still calls DismissKeyboard(). No assertions, tolerances or baselines change. The keyboard tests in Issue28986_SafeAreaBorderOrientation are excluded on Android (TEST_FAILS_ON_ANDROID), so they are unchanged.

CI evidence. Candidate UI 1689104, SafeAreaEdges API36 (log 2836):

  • The original attempt hit an NRE in Tap("GridResetAllButton") at line 156, right after DismissKeyboard() and a passing WaitForKeyboardToHide().
  • Logcat shows ESC to Gboard, then the app's onRequestHide, then onHidden after a stalled IME dump. Then a Transition CLOSE for the app task brings the launcher to the front.
  • The same NRE@156 signature appears in UI builds 1687709 and 1687330.

Local causal validation. Android 16 (API 36) emulator, net11 Material3 HostApp APK from UI build 1688901, filter Name=SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle|Name=SafeAreaPerEdgeValidation (3 tests per run):

Phase Runs Failed tests
Baseline (net11) 3 9/9
Fixed 3 1/9
Fix reverted 3 6/9
Fix restored 3 1/9
  • Baseline failures match CI: NRE at Issue28986_ContentPage.cs:156 (4), timeout at line 105 (4), a failure at line 126 (1), and timeout in Issue28986.cs at line 193 (6). Each comes after ESC, then onHidden, then a mid-test Transition CLOSE of the uitests task. The app relaunches only after the timeout.
  • Both fixed-run failures are in Issue28986_ContentPage.SafeAreaPerEdgeValidation at line 121. That is the earlier "keyboard shown" assertion, before any hide. Logcat shows no onRequestShow in those runs, so the keyboard was never requested. This is a separate, pre-hide failure that this PR doesn't address.

Issues Fixed

Fixes CI flakiness in Issue28986_ContentPage.SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle, Issue28986_ContentPage.SafeAreaPerEdgeValidation and Issue28986.SafeAreaPerEdgeValidation on Android.

App.DismissKeyboard() uses Appium's hideKeyboard on Android, which sends
ESC and, if the IME is still reported as shown about a second later, sends
BACK. When the IME hide outlasts that window the BACK key closes the test
page's activity, so the next lookup throws a NullReferenceException or
times out. Send only ESC while the keyboard is shown and wait for it to hide.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 19, 2026 03:24 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 40412

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 40412"

@azure-pipelines

This comment has been minimized.

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 19, 2026 03:24 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 19, 2026 03:26 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 19, 2026 03:28 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 19, 2026 03:29 — with GitHub Actions Inactive
@github-actions github-actions Bot added area-testing Unit tests, device tests platform/android labels Nov 19, 2026
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 19, 2026 03:30 — with GitHub Actions Inactive
@kubaflo kubaflo mentioned this pull request Nov 19, 2026
1 task
@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Nov 19, 2026
@MauiBot

MauiBot commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

PR Test Gate

@kubaflo — existing-test verification; Setup did not capture a tested commit.

Result INCONCLUSIVE Platform Android


🧪 Gate analysis — click to expand

⚠ Inconclusive. Setup, build, or execution did not produce a conclusive result. This does not prove the fix is incorrect.

No interpretable test-group summary was produced. No additional test execution is inferred.

Setup did not capture a verified PR head; no commit is claimed as tested.

No immutable without-fix baseline was prepared.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Nov 19, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expert Review — 0 findings

Reviewed commit 7dce404.

@kubaflo
kubaflo merged commit cf31407 into net11 Nov 19, 2026
47 checks passed
@kubaflo
kubaflo deleted the kubaflo-net11-issue28986-esc-only-keyboard branch November 19, 2026 10:59
SubhikshaSf4851 pushed a commit to SubhikshaSf4851/maui that referenced this pull request Nov 23, 2026
…net#40412)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

Test-only. On Android, `App.DismissKeyboard()` calls Appium's
`hideKeyboard`. That sends ESC, and if the IME is still reported as
shown about a second later, it also sends BACK. When the IME hide takes
longer than that, BACK closes the test page's `MainActivity` and the
launcher comes to the front. The next element lookup then throws a
`NullReferenceException` or times out.

This is the same mechanism as dotnet#40361 (Issue35119). There, BACK cancelled
a prompt.

The fix replaces the three Android `DismissKeyboard()` calls in
`Issue28986_ContentPage` (`SafeAreaPerEdgeValidation`,
`SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle`) and
`Issue28986.SafeAreaPerEdgeValidation` with a helper:
- It waits for the keyboard to show.
- It sends only ESC, which the visible IME consumes.
- It asserts that the keyboard hides.

iOS still calls `DismissKeyboard()`. No assertions, tolerances or
baselines change. The keyboard tests in
`Issue28986_SafeAreaBorderOrientation` are excluded on Android
(`TEST_FAILS_ON_ANDROID`), so they are unchanged.

**CI evidence.** Candidate UI 1689104, SafeAreaEdges API36 (log 2836):
- The original attempt hit an NRE in `Tap("GridResetAllButton")` at line
156, right after `DismissKeyboard()` and a passing
`WaitForKeyboardToHide()`.
- Logcat shows ESC to Gboard, then the app's `onRequestHide`, then
`onHidden` after a stalled IME dump. Then a `Transition CLOSE` for the
app task brings the launcher to the front.
- The same NRE@156 signature appears in UI builds 1687709 and 1687330.

**Local causal validation.** Android 16 (API 36) emulator, `net11`
Material3 HostApp APK from UI build 1688901, filter
`Name=SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle|Name=SafeAreaPerEdgeValidation`
(3 tests per run):

| Phase | Runs | Failed tests |
| --- | --- | --- |
| Baseline (`net11`) | 3 | 9/9 |
| Fixed | 3 | 1/9 |
| Fix reverted | 3 | 6/9 |
| Fix restored | 3 | 1/9 |

- Baseline failures match CI: NRE at `Issue28986_ContentPage.cs:156`
(4), timeout at line 105 (4), a failure at line 126 (1), and timeout in
`Issue28986.cs` at line 193 (6). Each comes after ESC, then `onHidden`,
then a mid-test `Transition CLOSE` of the uitests task. The app
relaunches only after the timeout.
- Both fixed-run failures are in
`Issue28986_ContentPage.SafeAreaPerEdgeValidation` at line 121. That is
the earlier "keyboard shown" assertion, before any hide. Logcat shows no
`onRequestShow` in those runs, so the keyboard was never requested. This
is a separate, pre-hide failure that this PR doesn't address.

### Issues Fixed

Fixes CI flakiness in
`Issue28986_ContentPage.SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle`,
`Issue28986_ContentPage.SafeAreaPerEdgeValidation` and
`Issue28986.SafeAreaPerEdgeValidation` on Android.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit to kubaflo/maui that referenced this pull request Nov 23, 2026
…net#40412)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

Test-only. On Android, `App.DismissKeyboard()` calls Appium's
`hideKeyboard`. That sends ESC, and if the IME is still reported as
shown about a second later, it also sends BACK. When the IME hide takes
longer than that, BACK closes the test page's `MainActivity` and the
launcher comes to the front. The next element lookup then throws a
`NullReferenceException` or times out.

This is the same mechanism as dotnet#40361 (Issue35119). There, BACK cancelled
a prompt.

The fix replaces the three Android `DismissKeyboard()` calls in
`Issue28986_ContentPage` (`SafeAreaPerEdgeValidation`,
`SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle`) and
`Issue28986.SafeAreaPerEdgeValidation` with a helper:
- It waits for the keyboard to show.
- It sends only ESC, which the visible IME consumes.
- It asserts that the keyboard hides.

iOS still calls `DismissKeyboard()`. No assertions, tolerances or
baselines change. The keyboard tests in
`Issue28986_SafeAreaBorderOrientation` are excluded on Android
(`TEST_FAILS_ON_ANDROID`), so they are unchanged.

**CI evidence.** Candidate UI 1689104, SafeAreaEdges API36 (log 2836):
- The original attempt hit an NRE in `Tap("GridResetAllButton")` at line
156, right after `DismissKeyboard()` and a passing
`WaitForKeyboardToHide()`.
- Logcat shows ESC to Gboard, then the app's `onRequestHide`, then
`onHidden` after a stalled IME dump. Then a `Transition CLOSE` for the
app task brings the launcher to the front.
- The same NRE@156 signature appears in UI builds 1687709 and 1687330.

**Local causal validation.** Android 16 (API 36) emulator, `net11`
Material3 HostApp APK from UI build 1688901, filter
`Name=SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle|Name=SafeAreaPerEdgeValidation`
(3 tests per run):

| Phase | Runs | Failed tests |
| --- | --- | --- |
| Baseline (`net11`) | 3 | 9/9 |
| Fixed | 3 | 1/9 |
| Fix reverted | 3 | 6/9 |
| Fix restored | 3 | 1/9 |

- Baseline failures match CI: NRE at `Issue28986_ContentPage.cs:156`
(4), timeout at line 105 (4), a failure at line 126 (1), and timeout in
`Issue28986.cs` at line 193 (6). Each comes after ESC, then `onHidden`,
then a mid-test `Transition CLOSE` of the uitests task. The app
relaunches only after the timeout.
- Both fixed-run failures are in
`Issue28986_ContentPage.SafeAreaPerEdgeValidation` at line 121. That is
the earlier "keyboard shown" assertion, before any hide. Logcat shows no
`onRequestShow` in those runs, so the keyboard was never requested. This
is a separate, pre-hide failure that this PR doesn't address.

### Issues Fixed

Fixes CI flakiness in
`Issue28986_ContentPage.SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle`,
`Issue28986_ContentPage.SafeAreaPerEdgeValidation` and
`Issue28986.SafeAreaPerEdgeValidation` on Android.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@kubaflo kubaflo added this to the .NET 11 SR2 milestone Nov 24, 2026
SuthiYuvaraj pushed a commit to SuthiYuvaraj/maui that referenced this pull request Nov 25, 2026
…net#40412)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

Test-only. On Android, `App.DismissKeyboard()` calls Appium's
`hideKeyboard`. That sends ESC, and if the IME is still reported as
shown about a second later, it also sends BACK. When the IME hide takes
longer than that, BACK closes the test page's `MainActivity` and the
launcher comes to the front. The next element lookup then throws a
`NullReferenceException` or times out.

This is the same mechanism as dotnet#40361 (Issue35119). There, BACK cancelled
a prompt.

The fix replaces the three Android `DismissKeyboard()` calls in
`Issue28986_ContentPage` (`SafeAreaPerEdgeValidation`,
`SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle`) and
`Issue28986.SafeAreaPerEdgeValidation` with a helper:
- It waits for the keyboard to show.
- It sends only ESC, which the visible IME consumes.
- It asserts that the keyboard hides.

iOS still calls `DismissKeyboard()`. No assertions, tolerances or
baselines change. The keyboard tests in
`Issue28986_SafeAreaBorderOrientation` are excluded on Android
(`TEST_FAILS_ON_ANDROID`), so they are unchanged.

**CI evidence.** Candidate UI 1689104, SafeAreaEdges API36 (log 2836):
- The original attempt hit an NRE in `Tap("GridResetAllButton")` at line
156, right after `DismissKeyboard()` and a passing
`WaitForKeyboardToHide()`.
- Logcat shows ESC to Gboard, then the app's `onRequestHide`, then
`onHidden` after a stalled IME dump. Then a `Transition CLOSE` for the
app task brings the launcher to the front.
- The same NRE@156 signature appears in UI builds 1687709 and 1687330.

**Local causal validation.** Android 16 (API 36) emulator, `net11`
Material3 HostApp APK from UI build 1688901, filter
`Name=SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle|Name=SafeAreaPerEdgeValidation`
(3 tests per run):

| Phase | Runs | Failed tests |
| --- | --- | --- |
| Baseline (`net11`) | 3 | 9/9 |
| Fixed | 3 | 1/9 |
| Fix reverted | 3 | 6/9 |
| Fix restored | 3 | 1/9 |

- Baseline failures match CI: NRE at `Issue28986_ContentPage.cs:156`
(4), timeout at line 105 (4), a failure at line 126 (1), and timeout in
`Issue28986.cs` at line 193 (6). Each comes after ESC, then `onHidden`,
then a mid-test `Transition CLOSE` of the uitests task. The app
relaunches only after the timeout.
- Both fixed-run failures are in
`Issue28986_ContentPage.SafeAreaPerEdgeValidation` at line 121. That is
the earlier "keyboard shown" assertion, before any hide. Logcat shows no
`onRequestShow` in those runs, so the keyboard was never requested. This
is a separate, pre-hide failure that this PR doesn't address.

### Issues Fixed

Fixes CI flakiness in
`Issue28986_ContentPage.SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle`,
`Issue28986_ContentPage.SafeAreaPerEdgeValidation` and
`Issue28986.SafeAreaPerEdgeValidation` on Android.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
KarthikRajaKalaimani pushed a commit to KarthikRajaKalaimani/maui that referenced this pull request Nov 26, 2026
…net#40412)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

Test-only. On Android, `App.DismissKeyboard()` calls Appium's
`hideKeyboard`. That sends ESC, and if the IME is still reported as
shown about a second later, it also sends BACK. When the IME hide takes
longer than that, BACK closes the test page's `MainActivity` and the
launcher comes to the front. The next element lookup then throws a
`NullReferenceException` or times out.

This is the same mechanism as dotnet#40361 (Issue35119). There, BACK cancelled
a prompt.

The fix replaces the three Android `DismissKeyboard()` calls in
`Issue28986_ContentPage` (`SafeAreaPerEdgeValidation`,
`SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle`) and
`Issue28986.SafeAreaPerEdgeValidation` with a helper:
- It waits for the keyboard to show.
- It sends only ESC, which the visible IME consumes.
- It asserts that the keyboard hides.

iOS still calls `DismissKeyboard()`. No assertions, tolerances or
baselines change. The keyboard tests in
`Issue28986_SafeAreaBorderOrientation` are excluded on Android
(`TEST_FAILS_ON_ANDROID`), so they are unchanged.

**CI evidence.** Candidate UI 1689104, SafeAreaEdges API36 (log 2836):
- The original attempt hit an NRE in `Tap("GridResetAllButton")` at line
156, right after `DismissKeyboard()` and a passing
`WaitForKeyboardToHide()`.
- Logcat shows ESC to Gboard, then the app's `onRequestHide`, then
`onHidden` after a stalled IME dump. Then a `Transition CLOSE` for the
app task brings the launcher to the front.
- The same NRE@156 signature appears in UI builds 1687709 and 1687330.

**Local causal validation.** Android 16 (API 36) emulator, `net11`
Material3 HostApp APK from UI build 1688901, filter
`Name=SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle|Name=SafeAreaPerEdgeValidation`
(3 tests per run):

| Phase | Runs | Failed tests |
| --- | --- | --- |
| Baseline (`net11`) | 3 | 9/9 |
| Fixed | 3 | 1/9 |
| Fix reverted | 3 | 6/9 |
| Fix restored | 3 | 1/9 |

- Baseline failures match CI: NRE at `Issue28986_ContentPage.cs:156`
(4), timeout at line 105 (4), a failure at line 126 (1), and timeout in
`Issue28986.cs` at line 193 (6). Each comes after ESC, then `onHidden`,
then a mid-test `Transition CLOSE` of the uitests task. The app
relaunches only after the timeout.
- Both fixed-run failures are in
`Issue28986_ContentPage.SafeAreaPerEdgeValidation` at line 121. That is
the earlier "keyboard shown" assertion, before any hide. Logcat shows no
`onRequestShow` in those runs, so the keyboard was never requested. This
is a separate, pre-hide failure that this PR doesn't address.

### Issues Fixed

Fixes CI flakiness in
`Issue28986_ContentPage.SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle`,
`Issue28986_ContentPage.SafeAreaPerEdgeValidation` and
`Issue28986.SafeAreaPerEdgeValidation` on Android.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 7dce4049 Deployed Nov 19, 2026 by kubaflo via conclusion #3111
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-testing Unit tests, device tests platform/android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants