(display: DisplayFixture)
| 17 | |
| 18 | |
| 19 | async def test_image_from_string(display: DisplayFixture): |
| 20 | src = IMAGE_SRC_BYTES.decode() |
| 21 | await display.show(lambda: reactpy.widgets.image("svg", src, {"id": "a-circle-1"})) |
| 22 | client_img = await display.page.wait_for_selector("#a-circle-1") |
| 23 | assert BASE64_IMAGE_SRC in (await client_img.get_attribute("src")) |
| 24 | |
| 25 | |
| 26 | async def test_image_from_bytes(display: DisplayFixture): |