feat: validate with ocr text

This commit is contained in:
debugtalk
2022-08-28 12:18:45 +08:00
parent af23ed8699
commit 4421986bc7
2 changed files with 40 additions and 1 deletions
+3 -1
View File
@@ -10,9 +10,11 @@ func TestIOSSettingsAction(t *testing.T) {
Config: NewConfig("ios ui action on Settings"),
TestSteps: []IStep{
NewStep("launch Settings").
IOS().Home().Tap("//*[@label='设置']").
IOS().Home().Tap("设置").
Validate().
AssertNameExists("飞行模式").
AssertLabelExists("飞行模式").
AssertOCRExists("飞行模式").
AssertLabelNotExists("飞行模式2"),
NewStep("swipe up and down").
IOS().SwipeUp().SwipeUp().SwipeDown(),