Skip to content

Commit

Permalink
ci: tune test cases associated with w3c actions (#920)
Browse files Browse the repository at this point in the history
* ci: combine two tests to reduce test case

* test: remove no longer necessary error case

* extract empty test case

* Revert "ci: combine two tests to reduce test case"

This reverts commit d3fd51c.
  • Loading branch information
KazuCocoa authored Jul 18, 2024
1 parent c61fa88 commit d2302a3
Showing 1 changed file with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,6 @@ - (void)testErroneousGestures
},
],

// Chain element with empty 'actions'
@[@{
@"type": @"pointer",
@"id": @"finger1",
@"parameters": @{@"pointerType": @"touch"},
@"actions": @[],
},
],

// Chain element without type
@[@{
@"id": @"finger1",
Expand Down Expand Up @@ -276,6 +267,21 @@ - (void)testErroneousGestures
}
}

- (void)testNothingDoesWithoutError
{
NSArray<NSDictionary<NSString *, id> *> *gesture =
@[@{
@"type": @"pointer",
@"id": @"finger1",
@"parameters": @{@"pointerType": @"touch"},
@"actions": @[],
},
];
NSError *error;
XCTAssertTrue([self.testedApplication fb_performW3CActions:gesture elementCache:nil error:&error]);
XCTAssertNil(error);
}

- (void)testTap
{
NSArray<NSDictionary<NSString *, id> *> *gesture =
Expand Down

0 comments on commit d2302a3

Please sign in to comment.