From 741b6fb6d73d6f7c027350b7b986d1a774ab9e56 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Mon, 1 Sep 2025 19:34:18 -0700 Subject: [PATCH] chore: tests --- .../src/ui/list-view/list-view-tests.ts | 129 +++++++++++++++++- packages/core/ui/list-view/index.android.ts | 62 ++++++--- 2 files changed, 169 insertions(+), 22 deletions(-) diff --git a/apps/automated/src/ui/list-view/list-view-tests.ts b/apps/automated/src/ui/list-view/list-view-tests.ts index dfe5718a3..08a44e318 100644 --- a/apps/automated/src/ui/list-view/list-view-tests.ts +++ b/apps/automated/src/ui/list-view/list-view-tests.ts @@ -1,7 +1,7 @@ import * as TKUnit from '../../tk-unit'; import * as helper from '../../ui-helper'; import { UITest } from '../../ui-test'; -import { isAndroid, Page, View, KeyedTemplate, Utils, Observable, EventData, ObservableArray, Label, Application, ListView, ItemEventData } from '@nativescript/core'; +import { isAndroid, Page, View, KeyedTemplate, Utils, Observable, EventData, ObservableArray, Label, Application, ListView, ItemEventData, StackLayout } from '@nativescript/core'; import { MyButton, MyStackLayout } from '../layouts/layout-helper'; // >> article-item-tap @@ -369,6 +369,7 @@ export class ListViewTest extends UITest { } public test_loadMoreItems_raised_when_showing_few_items() { + this.setUp(); var listView = this.testView; var loadMoreItemsCount = 0; @@ -751,10 +752,136 @@ export class ListViewTest extends UITest { listView.scrollToIndex(10000); } + // Sticky header sanity tests + public test_stickyHeader_iOS_sectioned_headers_basic() { + if (!__APPLE__) { + return; + } + + this.setUp(); + + const listView = this.testView; + listView.sectioned = true; + listView.stickyHeader = true; + listView.stickyHeaderTemplate = "