callstack / callstack/react-native-slider

[iOS] Slider doesn't trigger onValueChange/onSlidingComplete when adjusted with Detox adjustSliderToPosition()

未关闭
#351 9 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
bug report
主要语言
TypeScript
星标
1.4k
派生
295
平均合并
5 分钟
30 天内合并 PR
1

描述

## Environment

❯ react-native info
info Fetching system and libraries information...
System:
OS: macOS 12.1
CPU: (10) arm64 Apple M1 Pro
Memory: 201.50 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.13.2 - /var/folders/51/8pncdp0x14d04bbk454szsnw0000gn/T/fnm_multishells/16782_1643016955991/bin/node
Yarn: 1.22.5 - ~/.yarn/bin/yarn
npm: 8.1.2 - /var/folders/51/8pncdp0x14d04bbk454szsnw0000gn/T/fnm_multishells/16782_1643016955991/bin/npm
Watchman: 2022.01.03.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.2 - /Users/moox/.gem/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.10 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: ^17.0.2 => 17.0.2
react-native: 0.67.0-rc.6 => 0.67.0-rc.6
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found

## Description

I am using [detox](https://wix.github.io/Detox/) to automated some tests and just faced the fact that using [adjustSliderToPosition()](https://wix.github.io/Detox/docs/api/actions-on-element/#adjustslidertopositionnormalizedposition) API doesn't trigger `onValueChange` nor `onSlidingComplete`, so in my case it's like the slider hasn't been moved (it is, visually, but programmatically, no call have been made)

## Reproducible Demo

I can't really do a quick demo :/

贡献指南

打开贡献指南

调研方向

Start by reproducing the issue through Detox's adjustSliderToPosition() API and trace the iOS slider event handling. Done means adjusting the slider programmatically triggers both onValueChange and onSlidingComplete; the issue does not name a source file or test to run.

由索引模型根据 Issue 内容生成。

评估

技术栈
ios, react-native
领域
mobile, testing-qa
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。