From 6e184956244d0473920d9251ae691e05d2aaeee9 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Thu, 29 Oct 2026 17:15:31 +0000 Subject: [PATCH] Deep-link into the FlatList maintainVisibleContentPosition example in E2E flows The 24 FlatList maintainVisibleContentPosition flows reached their example by scrolling the RNTester component list at `speed: 40` twice (to "FlatList", then to "maintainVisibleContentPosition"). Every other list flow already opens its example with an `rntester://` deep link, which is faster and doesn't depend on where the example sits in the list. Open `rntester://example/FlatListExample/maintainVisibleContentPosition` directly and wait for the example's scroll offset display before starting. The portrait orientation setup is unchanged. --- .../flatlist-append-maintainvisible.yml | 24 ++++------ ...list-complex-mutations-maintainvisible.yml | 24 ++++------ ...flatlist-delete-anchor-maintainvisible.yml | 24 ++++------ ...flatlist-delete-middle-maintainvisible.yml | 24 ++++------ .../flatlist-empty-list-maintainvisible.yml | 24 ++++------ ...flatlist-first-prepend-maintainvisible.yml | 25 ++++------ ...horizontal-add50-reset-maintainvisible.yml | 24 ++++------ ...st-horizontal-inverted-maintainvisible.yml | 24 ++++------ ...ontal-inverted-recycle-maintainvisible.yml | 24 ++++------ .../flatlist-horizontal-maintainvisible.yml | 24 ++++------ ...ist-horizontal-recycle-maintainvisible.yml | 24 ++++------ .../flatlist-inverted-maintainvisible.yml | 24 ++++------ ...tlist-inverted-recycle-maintainvisible.yml | 24 ++++------ .../.maestro/flatlist-maintainvisible.yml | 47 +++++++------------ ...atlist-momentum-scroll-maintainvisible.yml | 24 ++++------ .../flatlist-orientation-maintainvisible.yml | 24 ++++------ ...latlist-prepend-delete-maintainvisible.yml | 24 ++++------ ...atlist-pull-to-refresh-maintainvisible.yml | 24 ++++------ ...latlist-rapid-prepends-maintainvisible.yml | 24 ++++------ .../flatlist-recycle-maintainvisible.yml | 24 ++++------ ...latlist-scrolltooffset-maintainvisible.yml | 24 ++++------ .../flatlist-throttle-maintainvisible.yml | 24 ++++------ ...e-height-first-prepend-maintainvisible.yml | 24 ++++------ ...atlist-variable-height-maintainvisible.yml | 24 ++++------ 24 files changed, 205 insertions(+), 395 deletions(-) diff --git a/packages/rn-tester/.maestro/flatlist-append-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-append-maintainvisible.yml index e477f1ce16f..e31fae8e05a 100644 --- a/packages/rn-tester/.maestro/flatlist-append-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-append-maintainvisible.yml @@ -9,22 +9,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Scroll to offset 500 - tapOn: text: 'ScrollToOffset 500' diff --git a/packages/rn-tester/.maestro/flatlist-complex-mutations-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-complex-mutations-maintainvisible.yml index 188ccf4570b..70d42f8be6d 100644 --- a/packages/rn-tester/.maestro/flatlist-complex-mutations-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-complex-mutations-maintainvisible.yml @@ -5,24 +5,18 @@ tags: - release-only --- - launchApp +# Change to portrait - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Scroll to offset 200 - tapOn: text: 'ScrollToOffset 100' diff --git a/packages/rn-tester/.maestro/flatlist-delete-anchor-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-delete-anchor-maintainvisible.yml index 162f8c1f812..d4c121984c3 100644 --- a/packages/rn-tester/.maestro/flatlist-delete-anchor-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-delete-anchor-maintainvisible.yml @@ -5,24 +5,18 @@ tags: - release-only --- - launchApp +# Change to portrait - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Scroll to offset 200 (item 5 should be visible) - tapOn: text: 'ScrollToOffset 100' diff --git a/packages/rn-tester/.maestro/flatlist-delete-middle-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-delete-middle-maintainvisible.yml index 03620b2dd22..22174957d5f 100644 --- a/packages/rn-tester/.maestro/flatlist-delete-middle-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-delete-middle-maintainvisible.yml @@ -5,24 +5,18 @@ tags: - release-only --- - launchApp +# Change to portrait - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Scroll to offset 400 (item 10 should be visible) - tapOn: text: 'ScrollToOffset 500' diff --git a/packages/rn-tester/.maestro/flatlist-empty-list-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-empty-list-maintainvisible.yml index f2c549e5355..989d34e7903 100644 --- a/packages/rn-tester/.maestro/flatlist-empty-list-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-empty-list-maintainvisible.yml @@ -11,22 +11,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Scroll to item 10 - tapOn: text: 'ScrollToOffset 500' diff --git a/packages/rn-tester/.maestro/flatlist-first-prepend-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-first-prepend-maintainvisible.yml index b7d032a94b9..50602fe8336 100644 --- a/packages/rn-tester/.maestro/flatlist-first-prepend-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-first-prepend-maintainvisible.yml @@ -9,23 +9,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test - -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Scroll to offset 500 - tapOn: text: 'ScrollToOffset 500' diff --git a/packages/rn-tester/.maestro/flatlist-horizontal-add50-reset-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-horizontal-add50-reset-maintainvisible.yml index 44b9e863afa..9fa3fa9e476 100644 --- a/packages/rn-tester/.maestro/flatlist-horizontal-add50-reset-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-horizontal-add50-reset-maintainvisible.yml @@ -6,24 +6,18 @@ tags: - release-only --- - launchApp +# Change to portrait - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Enable horizontal mode - tapOn: text: 'Horizontal: OFF' diff --git a/packages/rn-tester/.maestro/flatlist-horizontal-inverted-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-horizontal-inverted-maintainvisible.yml index bc629d5155d..32284bb362a 100644 --- a/packages/rn-tester/.maestro/flatlist-horizontal-inverted-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-horizontal-inverted-maintainvisible.yml @@ -10,22 +10,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Enable horizontal mode - tapOn: text: 'Horizontal: OFF' diff --git a/packages/rn-tester/.maestro/flatlist-horizontal-inverted-recycle-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-horizontal-inverted-recycle-maintainvisible.yml index 2d8e39090dd..804f3a91590 100644 --- a/packages/rn-tester/.maestro/flatlist-horizontal-inverted-recycle-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-horizontal-inverted-recycle-maintainvisible.yml @@ -9,22 +9,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Enable both horizontal and inverted mode - tapOn: text: 'Horizontal: OFF' diff --git a/packages/rn-tester/.maestro/flatlist-horizontal-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-horizontal-maintainvisible.yml index e625f861ace..7ff8c881f64 100644 --- a/packages/rn-tester/.maestro/flatlist-horizontal-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-horizontal-maintainvisible.yml @@ -9,22 +9,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Enable horizontal mode - tapOn: text: 'Horizontal: OFF' diff --git a/packages/rn-tester/.maestro/flatlist-horizontal-recycle-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-horizontal-recycle-maintainvisible.yml index b80c7f975b6..9c8153953ef 100644 --- a/packages/rn-tester/.maestro/flatlist-horizontal-recycle-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-horizontal-recycle-maintainvisible.yml @@ -9,22 +9,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Enable horizontal mode - tapOn: text: 'Horizontal: OFF' diff --git a/packages/rn-tester/.maestro/flatlist-inverted-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-inverted-maintainvisible.yml index 132565d9cce..d0a14e0ddfb 100644 --- a/packages/rn-tester/.maestro/flatlist-inverted-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-inverted-maintainvisible.yml @@ -10,22 +10,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 - waitForAnimationToEnd: timeout: 2000 # Enable inverted mode diff --git a/packages/rn-tester/.maestro/flatlist-inverted-recycle-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-inverted-recycle-maintainvisible.yml index ed0041bdedb..80a85cce246 100644 --- a/packages/rn-tester/.maestro/flatlist-inverted-recycle-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-inverted-recycle-maintainvisible.yml @@ -11,22 +11,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Enable inverted mode - tapOn: text: 'Inverted: OFF' diff --git a/packages/rn-tester/.maestro/flatlist-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-maintainvisible.yml index f767288857c..975947f2b37 100644 --- a/packages/rn-tester/.maestro/flatlist-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-maintainvisible.yml @@ -15,22 +15,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Scroll to offset 500 - tapOn: text: 'ScrollToOffset 500' @@ -93,21 +85,14 @@ tags: - release-only --- - launchApp -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Scroll to offset 500 - tapOn: text: 'ScrollToOffset 500' diff --git a/packages/rn-tester/.maestro/flatlist-momentum-scroll-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-momentum-scroll-maintainvisible.yml index cb1baa52e5a..ff7be555c5b 100644 --- a/packages/rn-tester/.maestro/flatlist-momentum-scroll-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-momentum-scroll-maintainvisible.yml @@ -10,22 +10,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Scroll to offset 500 - tapOn: text: 'ScrollToOffset 500' diff --git a/packages/rn-tester/.maestro/flatlist-orientation-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-orientation-maintainvisible.yml index 5f1a5f00c25..cf20bf6b7a5 100644 --- a/packages/rn-tester/.maestro/flatlist-orientation-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-orientation-maintainvisible.yml @@ -14,22 +14,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Scroll to offset 100 (within scrollable range) - tapOn: text: 'ScrollToOffset 100' diff --git a/packages/rn-tester/.maestro/flatlist-prepend-delete-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-prepend-delete-maintainvisible.yml index c42ca0bee0a..ba7b1cc8e75 100644 --- a/packages/rn-tester/.maestro/flatlist-prepend-delete-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-prepend-delete-maintainvisible.yml @@ -12,22 +12,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Scroll to offset 100 - tapOn: text: 'ScrollToOffset 100' diff --git a/packages/rn-tester/.maestro/flatlist-pull-to-refresh-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-pull-to-refresh-maintainvisible.yml index a4d561a73bc..9378ce8baa5 100644 --- a/packages/rn-tester/.maestro/flatlist-pull-to-refresh-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-pull-to-refresh-maintainvisible.yml @@ -5,24 +5,18 @@ tags: - release-only --- - launchApp +# Change to portrait - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Scroll to offset 200 - tapOn: text: 'ScrollToOffset 100' diff --git a/packages/rn-tester/.maestro/flatlist-rapid-prepends-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-rapid-prepends-maintainvisible.yml index ac203a99c83..d8cdaece51e 100644 --- a/packages/rn-tester/.maestro/flatlist-rapid-prepends-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-rapid-prepends-maintainvisible.yml @@ -10,22 +10,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Scroll to offset 500 - tapOn: text: 'ScrollToOffset 500' diff --git a/packages/rn-tester/.maestro/flatlist-recycle-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-recycle-maintainvisible.yml index 69072f4afc5..ae524948b49 100644 --- a/packages/rn-tester/.maestro/flatlist-recycle-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-recycle-maintainvisible.yml @@ -10,22 +10,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Enable recycling (windowSize=3) - tapOn: text: 'Recycle: OFF' diff --git a/packages/rn-tester/.maestro/flatlist-scrolltooffset-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-scrolltooffset-maintainvisible.yml index c3736d81676..291d33dcf76 100644 --- a/packages/rn-tester/.maestro/flatlist-scrolltooffset-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-scrolltooffset-maintainvisible.yml @@ -11,22 +11,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Scroll to offset 100 (within scrollable range for 20 items) - tapOn: text: 'ScrollToOffset 100' diff --git a/packages/rn-tester/.maestro/flatlist-throttle-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-throttle-maintainvisible.yml index 02ffcf6c982..541130a310f 100644 --- a/packages/rn-tester/.maestro/flatlist-throttle-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-throttle-maintainvisible.yml @@ -9,22 +9,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Enable throttle (500ms) - tapOn: text: 'Throttle: 16ms' diff --git a/packages/rn-tester/.maestro/flatlist-variable-height-first-prepend-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-variable-height-first-prepend-maintainvisible.yml index 2c69fd301fc..5818096c2da 100644 --- a/packages/rn-tester/.maestro/flatlist-variable-height-first-prepend-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-variable-height-first-prepend-maintainvisible.yml @@ -9,22 +9,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Enable variable height mode - tapOn: text: 'Height: Fixed' diff --git a/packages/rn-tester/.maestro/flatlist-variable-height-maintainvisible.yml b/packages/rn-tester/.maestro/flatlist-variable-height-maintainvisible.yml index 26b4d01ed96..497a932f54c 100644 --- a/packages/rn-tester/.maestro/flatlist-variable-height-maintainvisible.yml +++ b/packages/rn-tester/.maestro/flatlist-variable-height-maintainvisible.yml @@ -9,22 +9,14 @@ tags: - setOrientation: portrait - waitForAnimationToEnd: timeout: 3000 -# Find test -- assertVisible: 'Components' -- scrollUntilVisible: - element: - id: 'FlatList' - direction: DOWN - speed: 40 -- tapOn: - id: 'FlatList' -- scrollUntilVisible: - element: - id: 'maintainVisibleContentPosition' - direction: DOWN - speed: 40 -- tapOn: - id: 'maintainVisibleContentPosition' +# Open the example directly instead of scrolling through the list +- stopApp +- openLink: rntester://example/FlatListExample/maintainVisibleContentPosition +- runFlow: ./helpers/confirm-open-link.yml +- extendedWaitUntil: + visible: + id: 'scroll-offset-display' + timeout: 120000 # Enable variable height mode - tapOn: text: 'Height: Fixed'