
* lift node version restraint to allow more recent version if already installed * add node test for latest version * change python version * use purple for debug logs * update workflow * add playwright dev dependency * update workflow * change test * oops * improve test * update test * fix tests * mv units tests to a subfolder * reorganize tests * fix install * update test_state * revert node changes and only keep new tests organization * move integration tests in tests/integration * fix integration workflow * fix dockerfile workflow * fix dockerfile workflow 2 * fix shared_state
39 lines
1.0 KiB
Python
39 lines
1.0 KiB
Python
from reflex.components.core.responsive import (
|
|
desktop_only,
|
|
mobile_and_tablet,
|
|
mobile_only,
|
|
tablet_and_desktop,
|
|
tablet_only,
|
|
)
|
|
from reflex.components.radix.themes.layout.box import Box
|
|
|
|
|
|
def test_mobile_only():
|
|
"""Test the mobile_only responsive component."""
|
|
component = mobile_only("Content")
|
|
assert isinstance(component, Box)
|
|
|
|
|
|
def test_tablet_only():
|
|
"""Test the tablet_only responsive component."""
|
|
component = tablet_only("Content")
|
|
assert isinstance(component, Box)
|
|
|
|
|
|
def test_desktop_only():
|
|
"""Test the desktop_only responsive component."""
|
|
component = desktop_only("Content")
|
|
assert isinstance(component, Box)
|
|
|
|
|
|
def test_tablet_and_desktop():
|
|
"""Test the tablet_and_desktop responsive component."""
|
|
component = tablet_and_desktop("Content")
|
|
assert isinstance(component, Box)
|
|
|
|
|
|
def test_mobile_and_tablet():
|
|
"""Test the mobile_and_tablet responsive component."""
|
|
component = mobile_and_tablet("Content")
|
|
assert isinstance(component, Box)
|