@@ -120,43 +120,46 @@ public void testFlexUIRendered() {
120120 assertEquals (inPixelRounded (200 ), child1 .getHeight ());
121121 }
122122
123- public void testFlexWithTextViews () {
124- FrameLayout rootView = createRootView ();
125- jsModule .renderFlexWithTextApplication (rootView .getId ());
126- waitForBridgeAndUIIdle ();
127-
128- assertEquals (1 , rootView .getChildCount ());
129-
130- ViewGroup container = getViewByTestId (rootView , "container" );
131- assertEquals (inPixelRounded (300 ), container .getHeight ());
132- assertEquals (1 , container .getChildCount ());
133-
134- ViewGroup row = (ViewGroup ) container .getChildAt (0 );
135- assertEquals (inPixelRounded (300 ), row .getHeight ());
136- assertEquals (2 , row .getChildCount ());
137-
138- // Text measurement adds padding that isn't completely dependent on density so we can't easily
139- // get an exact value here
140- float approximateExpectedTextHeight = inPixelRounded (19 );
141- View leftText = row .getChildAt (0 );
142- assertTrue (
143- isWithinRange (
144- leftText .getHeight (),
145- approximateExpectedTextHeight - PixelUtil .toPixelFromDIP (1 ),
146- approximateExpectedTextHeight + PixelUtil .toPixelFromDIP (1 )));
147- assertEquals (row .getWidth () / 2 - inPixelRounded (20 ), leftText .getWidth ());
148- assertEquals (inPixelRounded (290 ), (leftText .getTop () + leftText .getHeight ()));
149-
150- View rightText = row .getChildAt (1 );
151- assertTrue (
152- isWithinRange (
153- rightText .getHeight (),
154- approximateExpectedTextHeight - PixelUtil .toPixelFromDIP (1 ),
155- approximateExpectedTextHeight + PixelUtil .toPixelFromDIP (1 )));
156- assertEquals (leftText .getWidth (), rightText .getWidth ());
157- assertEquals (leftText .getTop (), rightText .getTop ());
158- assertEquals (leftText .getWidth () + inPixelRounded (30 ), rightText .getLeft ());
159- }
123+ // TODO t13583009
124+ // Breaks OSS CI but runs fine locally
125+ // Find what could be different and make the test independent of env
126+ // public void testFlexWithTextViews() {
127+ // FrameLayout rootView = createRootView();
128+ // jsModule.renderFlexWithTextApplication(rootView.getId());
129+ // waitForBridgeAndUIIdle();
130+ //
131+ // assertEquals(1, rootView.getChildCount());
132+ //
133+ // ViewGroup container = getViewByTestId(rootView, "container");
134+ // assertEquals(inPixelRounded(300), container.getHeight());
135+ // assertEquals(1, container.getChildCount());
136+ //
137+ // ViewGroup row = (ViewGroup) container.getChildAt(0);
138+ // assertEquals(inPixelRounded(300), row.getHeight());
139+ // assertEquals(2, row.getChildCount());
140+ //
141+ // // Text measurement adds padding that isn't completely dependent on density so we can't easily
142+ // // get an exact value here
143+ // float approximateExpectedTextHeight = inPixelRounded(19);
144+ // View leftText = row.getChildAt(0);
145+ // assertTrue(
146+ // isWithinRange(
147+ // leftText.getHeight(),
148+ // approximateExpectedTextHeight - PixelUtil.toPixelFromDIP(1),
149+ // approximateExpectedTextHeight + PixelUtil.toPixelFromDIP(1)));
150+ // assertEquals(row.getWidth() / 2 - inPixelRounded(20), leftText.getWidth());
151+ // assertEquals(inPixelRounded(290), (leftText.getTop() + leftText.getHeight()));
152+ //
153+ // View rightText = row.getChildAt(1);
154+ // assertTrue(
155+ // isWithinRange(
156+ // rightText.getHeight(),
157+ // approximateExpectedTextHeight - PixelUtil.toPixelFromDIP(1),
158+ // approximateExpectedTextHeight + PixelUtil.toPixelFromDIP(1)));
159+ // assertEquals(leftText.getWidth(), rightText.getWidth());
160+ // assertEquals(leftText.getTop(), rightText.getTop());
161+ // assertEquals(leftText.getWidth() + inPixelRounded(30), rightText.getLeft());
162+ // }
160163
161164 public void testAbsolutePositionUIRendered () {
162165 FrameLayout rootView = createRootView ();
0 commit comments