Skip to content

Commit

Permalink
ci: combine two tests to reduce test case
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Jul 18, 2024
1 parent 9e70ec1 commit d3fd51c
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions WebDriverAgentTests/IntegrationTests/FBW3CTypeActionsTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -156,30 +156,20 @@ - (void)testTextTyping
error:&error]);
XCTAssertNil(error);
XCTAssertEqualObjects(textField.wdValue, @"🏀NBA");
}

- (void)testTextTypingWithEmptyActions
{
if (![XCPointerEvent.class fb_areKeyEventsSupported]) {
return;
}

XCUIElement *textField = self.testedApplication.textFields[@"aIdentifier"];
[textField tap];
NSArray<NSDictionary<NSString *, id> *> *typeAction =
NSArray<NSDictionary<NSString *, id> *> *typeAction2 =
@[
@{
@"type": @"pointer",
@"id": @"touch",
@"actions": @[],
},
];
NSError *error;
XCTAssertTrue([self.testedApplication fb_performW3CActions:typeAction
XCTAssertTrue([self.testedApplication fb_performW3CActions:typeAction2
elementCache:nil
error:&error]);
XCTAssertNil(error);
XCTAssertEqualObjects(textField.value, @"");
XCTAssertEqualObjects(textField.value, @"🏀NBA");
}

@end

0 comments on commit d3fd51c

Please sign in to comment.