From 3ec304f1c8e645d0706652e0a50e0ef48c4f2330 Mon Sep 17 00:00:00 2001 From: EmmaYuan1015 Date: Thu, 28 May 2026 11:25:56 +0800 Subject: [PATCH] fix(smoke): assert action bar wait result to avoid false positives --- test/smoke/suites/actionBar.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/smoke/suites/actionBar.test.ts b/test/smoke/suites/actionBar.test.ts index f6ee4cc07..ec77303c9 100644 --- a/test/smoke/suites/actionBar.test.ts +++ b/test/smoke/suites/actionBar.test.ts @@ -58,7 +58,7 @@ export function startActionBarTests(): void { ); await actionButton.click(); - await WaitHelper.waitIsTrue(async () => { + const isPackagerStateUpdated = await WaitHelper.waitIsTrue(async () => { const packager = await ComponentHelper.getReactNativePackager(); const currentState = await packager.getAttribute("aria-label"); try { @@ -71,6 +71,11 @@ export function startActionBarTests(): void { return false; } }); + + assert.ok( + isPackagerStateUpdated, + "Packager state did not update to include 'primitive-square' within timeout", + ); }); }); }