Unbreak tests after recent changes in main (p2)

This commit is contained in:
Masen Furer 2024-02-08 10:46:40 -08:00
parent c596651de6
commit b607531318
No known key found for this signature in database
GPG Key ID: B0008AD22B3B3A95
3 changed files with 5 additions and 5 deletions

View File

@ -36,12 +36,12 @@ overlapping_button_style = {
}
base_style = {
rx.MenuButton: {
rx.chakra.MenuButton: {
"width": "3em",
"height": "3em",
**overlapping_button_style,
},
rx.MenuItem: hover_accent_bg,
rx.chakra.MenuItem: hover_accent_bg,
}
markdown_style = {

View File

@ -260,7 +260,7 @@ def test_match_case_tuple_elements(match_case):
([1, 2], rx.text("third value")),
rx.text("default value"),
),
"Match cases should have the same return types. Case 3 with return value `<RadixThemesText> {`first value`} </RadixThemesText>` "
"Match cases should have the same return types. Case 3 with return value `<RadixThemesText as={`p`}> {`first value`} </RadixThemesText>` "
"of type <class 'reflex.components.radix.themes.typography.text.Text'> is not <class 'reflex.vars.BaseVar'>",
),
],

View File

@ -627,7 +627,7 @@ def test_component_with_only_valid_children(fixture, request):
@pytest.mark.parametrize(
"component,rendered",
[
(rx.text("hi"), "<RadixThemesText>\n {`hi`}\n</RadixThemesText>"),
(rx.text("hi"), "<RadixThemesText as={`p`}>\n {`hi`}\n</RadixThemesText>"),
(
rx.box(rx.chakra.heading("test", size="md")),
"<RadixThemesBox>\n <Heading size={`md`}>\n {`test`}\n</Heading>\n</RadixThemesBox>",
@ -768,7 +768,7 @@ class EventState(rx.State):
id="direct-prop",
),
pytest.param(
rx.text(as_=f"foo{TEST_VAR}bar"), # type: ignore
rx.heading(as_=f"foo{TEST_VAR}bar"),
[FORMATTED_TEST_VAR],
id="fstring-prop",
),