Repository navigation
test(e2e): find the deferred input pane before its cancel button is visible - #538
Merged
Merged
Conversation
…isible The iOS provider run failed every time before cancelling the deferred input: the scroll pane was looked up by the cancel button with visible: true, which matches nothing while the button is still below the fold. Match the pane by the button regardless of visibility and wait for its bounds to settle inside the pane before clicking, as the workspace native test already does.
This was referenced Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


问题
#528 合并后,iOS Provider 验收已能越过以往失败点,但每次(3/3)都在
native-transfers.e2e.ts:540失败:expect(deferredScroll).toHaveCount(1)找不到包含“取消稍后输入”的滚动区。原因是筛选滚动区的
has用了从面板开始、且要求可见的按钮定位器。has在每个滚动区内部查找,等于要求滚动区里再有一个面板,所以永远匹配不到,测试根本走不到点击。修改
workspace.native.ts的同类写法一致。workspace.native.ts的做法。只改测试,不改产品代码。
验证
tsc -p tests/e2e/tsconfig.e2e.json通过。mobile.yml(只跑 iOS),整套 iOS Provider 验收通过,无失败项。负责人:harryisfish。状态:处理中。