Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions .github/workflow-scripts/__tests__/maestro-android-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,16 @@ describe('Maestro Android runner', () => {
});

it('excludes flows with matching tags', () => {
const releaseOnlyFlow = path.join(
temporaryDirectory,
'android-release-only.yml',
);
const releaseOnlyFlow = path.join(temporaryDirectory, 'release-only.yml');
const regularFlow = path.join(temporaryDirectory, 'regular.yml');
fs.writeFileSync(
releaseOnlyFlow,
'appId: x\ntags:\n - android-release-only\n---\n- launchApp\n',
'appId: x\ntags:\n - release-only\n---\n- launchApp\n',
);
fs.writeFileSync(regularFlow, 'appId: x\n---\n- launchApp\n');

expect(
filterFlowsByTags(
[releaseOnlyFlow, regularFlow],
['android-release-only'],
),
filterFlowsByTags([releaseOnlyFlow, regularFlow], ['release-only']),
).toEqual([regularFlow]);
});

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-android-rntester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
# These timing-sensitive flows remain covered by the release APK.
# Running the debug ARM64 APK through native translation can delay
# React commits long enough for Maestro to miss taps and assertions.
exclude-tags: ${{ matrix.flavor == 'debug' && 'android-release-only' || '' }}
exclude-tags: ${{ matrix.flavor == 'debug' && 'release-only' || '' }}
- name: Store per-flow test state
if: always()
uses: ./.github/actions/upload-artifact
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/e2e-ios-rntester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ jobs:
device-model: iPhone-17-Pro
device-os: iOS-26-2
test-state-path: /tmp/maestro-ios-state/results.json
exclude-tags: android-only
# The `release-only` flows (FlatList maintainVisibleContentPosition)
# are half of the suite and test scroll behavior that doesn't depend
# on the build flavor. Nearly 90% of their failed attempts were in
# Debug, so like on Android they only run against Release.
exclude-tags: ${{ matrix.flavor == 'Debug' && 'android-only,release-only' || 'android-only' }}
- name: Store per-flow test state
if: always()
uses: ./.github/actions/upload-artifact
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Appending items should NOT affect scroll offset (delta ~0)
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Tests prepend + append + delete in sequence
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
- setOrientation: portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# When the anchor item (first visible) is deleted, MVCP should select a new anchor
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
- setOrientation: portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# When items are deleted from the middle, MVCP should adjust scroll offset
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
- setOrientation: portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# correction.
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Single prepend with fixed-height items: delta should be ~44px (40px height + 4px margin)
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# reset returns offset to 0.
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
- setOrientation: portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# In inverted mode, prepending adds items to the right end
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Items are 200px wide + 4px margin = 204px each
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Horizontal: items are 200px wide, delta should be ~204px (200px + 4px margin)
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Items are 200px wide + 4px margin = 204px each
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# not logical order. Prepending shifts anchor view frame downward in both modes.
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# In inverted mode, items display in reverse order but MVCP delta behavior is the same
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
4 changes: 2 additions & 2 deletions packages/rn-tester/.maestro/flatlist-maintainvisible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# - Delta should equal height of prepended items (~44px per item with margin)
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down Expand Up @@ -90,7 +90,7 @@ tags:
# Test that user scroll is not interrupted during prepend
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
- assertVisible: 'Components'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# post-prepend. MVCP correction runs asynchronously in didMountItems.
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# to work correctly after the change.
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# the first visible view, but re-ordering edge case is untested.
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Simulates scroll-to-top then prepend (like pull-to-refresh with new items)
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
- setOrientation: portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# promptly, blocking render window updates. All prepends fired without waiting.
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# With windowSize=3, only ~3 pages of items are rendered
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# of the scrollTo target).
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Throttle affects timing but not final delta: should be ~44px
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Single prepend with variable height: delta should be 28-112px
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Delta should be between 28-112px (random height from [30,50,70,90,110])
appId: ${APP_ID}
tags:
- android-release-only
- release-only
---
- launchApp
# Change to portrait
Expand Down
Loading