diff --git a/WebDriverAgentTests/IntegrationTests/FBW3CTypeActionsTests.m b/WebDriverAgentTests/IntegrationTests/FBW3CTypeActionsTests.m index 893271e31..41720475a 100644 --- a/WebDriverAgentTests/IntegrationTests/FBW3CTypeActionsTests.m +++ b/WebDriverAgentTests/IntegrationTests/FBW3CTypeActionsTests.m @@ -156,17 +156,8 @@ - (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 *> *typeAction = + NSArray *> *typeAction2 = @[ @{ @"type": @"pointer", @@ -174,12 +165,11 @@ - (void)testTextTypingWithEmptyActions @"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