Skip to content

Commit

Permalink
Add a test for the already-fixed Row-child-wrapping bug
Browse files Browse the repository at this point in the history
Closes: #2011
  • Loading branch information
squarejesse committed Oct 4, 2024
1 parent 3b1458d commit 4748a4c
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,22 @@ abstract class AbstractFlexContainerTest<T : Any> {

snapshotter(root.value).snapshot()
}

/**
* Text not wrapping inside a row.
* https://github.com/cashapp/redwood/issues/2011
*/
@Test fun testTextWrapsInsideRow() {
val root = flexContainer(FlexDirection.Row)

root.add(
widgetFactory.text(
"This is a long piece of text that will wrap the screen. ".repeat(3),
),
)

snapshotter(root.value).snapshot()
}
}

interface TestFlexContainer<T : Any> :
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4748a4c

Please sign in to comment.