From d3fd51cacde53196a17a45f493372576d7bf983d Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Thu, 18 Jul 2024 00:18:04 -0700 Subject: [PATCH] ci: combine two tests to reduce test case --- .../IntegrationTests/FBW3CTypeActionsTests.m | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) 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