diff --git a/Examples/UIExplorer/UIExplorerIntegrationTests/RCTUIManagerScenarioTests.m b/Examples/UIExplorer/UIExplorerIntegrationTests/RCTUIManagerScenarioTests.m index ba0bbf508..d36a11277 100644 --- a/Examples/UIExplorer/UIExplorerIntegrationTests/RCTUIManagerScenarioTests.m +++ b/Examples/UIExplorer/UIExplorerIntegrationTests/RCTUIManagerScenarioTests.m @@ -73,6 +73,8 @@ removeAtIndices:nil registry:(NSMutableDictionary> *)_uiManager.viewRegistry]; + [_uiManager.viewRegistry[@20] didUpdateReactSubviews]; + XCTAssertTrue([[containerView reactSubviews] count] == 5, @"Expect to have 5 react subviews after calling manage children \ with 5 tags to add, instead have %lu", (unsigned long)[[containerView reactSubviews] count]); @@ -107,6 +109,8 @@ removeAtIndices:removeAtIndices registry:(NSMutableDictionary> *)_uiManager.viewRegistry]; + [_uiManager.viewRegistry[@20] didUpdateReactSubviews]; + XCTAssertEqual(containerView.reactSubviews.count, (NSUInteger)13, @"Expect to have 13 react subviews after calling manage children\ with 5 tags to remove and 18 prior children, instead have %zd", diff --git a/Examples/UIExplorer/UIExplorerIntegrationTests/ReferenceImages/Examples-UIExplorer-UIExplorerApp.ios/testViewExample_1@2x.png b/Examples/UIExplorer/UIExplorerIntegrationTests/ReferenceImages/Examples-UIExplorer-UIExplorerApp.ios/testViewExample_1@2x.png index 45bdb2631..0da195f5c 100644 Binary files a/Examples/UIExplorer/UIExplorerIntegrationTests/ReferenceImages/Examples-UIExplorer-UIExplorerApp.ios/testViewExample_1@2x.png and b/Examples/UIExplorer/UIExplorerIntegrationTests/ReferenceImages/Examples-UIExplorer-UIExplorerApp.ios/testViewExample_1@2x.png differ diff --git a/Examples/UIExplorer/UIExplorerUnitTests/RCTUIManagerTests.m b/Examples/UIExplorer/UIExplorerUnitTests/RCTUIManagerTests.m index c3bd09ff1..8d6991d4d 100644 --- a/Examples/UIExplorer/UIExplorerUnitTests/RCTUIManagerTests.m +++ b/Examples/UIExplorer/UIExplorerUnitTests/RCTUIManagerTests.m @@ -73,6 +73,8 @@ removeAtIndices:nil registry:_uiManager.viewRegistry]; + [containerView didUpdateReactSubviews]; + XCTAssertTrue([[containerView reactSubviews] count] == 5, @"Expect to have 5 react subviews after calling manage children \ with 5 tags to add, instead have %lu", (unsigned long)[[containerView reactSubviews] count]); @@ -107,6 +109,8 @@ removeAtIndices:removeAtIndices registry:_uiManager.viewRegistry]; + [containerView didUpdateReactSubviews]; + XCTAssertEqual(containerView.reactSubviews.count, (NSUInteger)13, @"Expect to have 13 react subviews after calling manage children\ with 5 tags to remove and 18 prior children, instead have %zd", @@ -166,6 +170,8 @@ removeAtIndices:removeAtIndices registry:_uiManager.viewRegistry]; + [containerView didUpdateReactSubviews]; + XCTAssertTrue([[containerView reactSubviews] count] == 8, @"Expect to have 8 react subviews after calling manage children,\ instead have the following subviews %@", [containerView reactSubviews]);