Skip to content

chore(test): test-tabs-item-title appearance sceanrio#4106

Open
LKuchno wants to merge 3 commits into
mainfrom
@lkuchno/test-tabs-item-title
Open

chore(test): test-tabs-item-title appearance sceanrio#4106
LKuchno wants to merge 3 commits into
mainfrom
@lkuchno/test-tabs-item-title

Conversation

@LKuchno
Copy link
Copy Markdown
Collaborator

@LKuchno LKuchno commented May 28, 2026

Description

  • Replaced the iOS-only test-tabs-item-title-ios screen and scenario (added in chore(tabs): add tab-item-title appearance scenario for iOS #4083) with a unified test-tabs-item-title that covers both iOS and Android tab bar item title props in a single file.
  • Screen components branch on Platform.OS to render platform-appropriate explanatory text; each TabRouteConfig now carries both ios and android blocks covering font color (selected/normal/focused states), font family, font size (iOS: single size with position adjustment; Android: small/large label sizes), font style, and font weight.
  • Updated the registration in apps/src/tests/single-feature-tests/tabs/index.ts to point to the new unified directory, removing the platform-suffixed import.

Closes: https://github.com/software-mansion/react-native-screens-labs/issues/1403

Changes:

  • iOS updates: Minor changes only—defined normal.tabBarItemTitleFontColor for the Color tab and renamed the Font and Position tab to Font.
  • Android updates: Created the screen implementation with Android-specific descriptive text (the first tab remains identical across both operating systems).
  • Scenario updates: Updated the test scenario to cover both platforms and specified the expected results for each, as certain behaviors differ between iOS and Android.
  • Test directory name update to not point iOS
  • Scenario-description updated with android as covered platform, iOS removed from key and extending description.

Test screen record:

Screen.Recording.2026-05-28.at.12.08.05.mov

LKuchno added 2 commits May 28, 2026 11:41
…enario with configuration for Android and scenario steps for it
…s, remoce green color set for Font tab on android
@LKuchno LKuchno added platform:ios Issue related to iOS part of the library platform:android Issue related to Android part of the library area:tabs Issue related to bottom tabs type:chore A general maintenance task, that does not fall into other categories. labels May 28, 2026
@LKuchno LKuchno requested a review from Copilot May 28, 2026 10:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR replaces the iOS-only tab bar item title scenario with a unified iOS/Android manual test scenario for validating tab title rendering, state colors, typography, sizing, and iOS position adjustment.

Changes:

  • Adds a new test-tabs-item-title scenario covering both platforms.
  • Registers the unified scenario instead of the iOS-suffixed one.
  • Removes the old test-tabs-item-title-ios scenario files.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
apps/src/tests/single-feature-tests/tabs/test-tabs-item-title/scenario.md Adds the unified manual test scenario documentation.
apps/src/tests/single-feature-tests/tabs/test-tabs-item-title/scenario-description.ts Defines the new cross-platform scenario metadata.
apps/src/tests/single-feature-tests/tabs/test-tabs-item-title/index.tsx Implements the new cross-platform tab title test screen.
apps/src/tests/single-feature-tests/tabs/test-tabs-item-title-ios/scenario.md Removes the old iOS-only scenario documentation.
apps/src/tests/single-feature-tests/tabs/test-tabs-item-title-ios/scenario-description.ts Removes old iOS-only scenario metadata.
apps/src/tests/single-feature-tests/tabs/test-tabs-item-title-ios/index.tsx Removes the old iOS-only test screen.
apps/src/tests/single-feature-tests/tabs/index.ts Updates scenario registration to the unified directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -0,0 +1,111 @@
# Test Scenario: Tab Bar Item Title (iOS)
## Details

Validates the tab bar item title configuration across both platforms, verifying
the core options.title rendering alongside long-string truncation.It checks
Comment on lines +94 to +97
(San Francisco, non-italic, 10 pt).
The title label is shifted noticeably upward (by ~6 points) compared to
the baseline position seen on the **Color** tab, while the icon position remains
unchanged.
@LKuchno LKuchno changed the title chore(test): test-tabs-item-title chore(test): test-tabs-item-title appearance sceanrio May 29, 2026
@LKuchno LKuchno requested a review from t0maboro May 29, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:tabs Issue related to bottom tabs platform:android Issue related to Android part of the library platform:ios Issue related to iOS part of the library type:chore A general maintenance task, that does not fall into other categories.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants