This repository was archived by the owner on Apr 28, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22from pathlib import Path
33
44import pytest
5- from reflex .testing import AppHarness
65
76# Add tests directory to Python path for absolute imports
87sys .path .insert (0 , str (Path (__file__ ).parent ))
@@ -23,6 +22,8 @@ def reflex_web_app():
2322 ]
2423 )
2524
25+ from reflex .testing import AppHarness
26+
2627 with AppHarness .create (root = app_root ) as harness :
2728 yield harness
2829
Original file line number Diff line number Diff line change 1+ from __future__ import annotations
2+
13import re
4+ from typing import TYPE_CHECKING
25
36import pytest
47from playwright .sync_api import Page , expect
5- from reflex .testing import AppHarness
8+
9+ if TYPE_CHECKING :
10+ from reflex .testing import AppHarness
611from utils import get_full_url
712
813
Original file line number Diff line number Diff line change 1+ from __future__ import annotations
2+
13import re
24import time
5+ from typing import TYPE_CHECKING
36
47import pytest
58from playwright .sync_api import Page , expect
6- from reflex .testing import AppHarness
9+
10+ if TYPE_CHECKING :
11+ from reflex .testing import AppHarness
712from utils import get_full_url
813
914
Original file line number Diff line number Diff line change 1+ from __future__ import annotations
2+
13import re
4+ from typing import TYPE_CHECKING
25
36import pytest
47from playwright .sync_api import Page , expect
5- from reflex .testing import AppHarness
8+
9+ if TYPE_CHECKING :
10+ from reflex .testing import AppHarness
611from utils import get_full_url
712
813
Original file line number Diff line number Diff line change 11"""Test the counter example on the main page."""
22
3+ from __future__ import annotations
4+
35import re
6+ from typing import TYPE_CHECKING
47
58import pytest
69from playwright .sync_api import Page , expect
7- from reflex .testing import AppHarness
10+
11+ if TYPE_CHECKING :
12+ from reflex .testing import AppHarness
813from utils import get_full_url
914
1015
Original file line number Diff line number Diff line change 1+ from __future__ import annotations
2+
3+ from typing import TYPE_CHECKING
4+
15import pytest
26from playwright .sync_api import Page , expect
3- from reflex .testing import AppHarness
7+
8+ if TYPE_CHECKING :
9+ from reflex .testing import AppHarness
410from utils import get_full_url
511
612
Original file line number Diff line number Diff line change 1+ from __future__ import annotations
2+
13import re
4+ from typing import TYPE_CHECKING
25
36import pytest
47from playwright .sync_api import Page , expect
5- from reflex .testing import AppHarness
8+
9+ if TYPE_CHECKING :
10+ from reflex .testing import AppHarness
611from utils import get_full_url
712
813
Original file line number Diff line number Diff line change 1+ from __future__ import annotations
2+
13import re
4+ from typing import TYPE_CHECKING
25
36import pytest
47from playwright .sync_api import Page , expect
5- from reflex .testing import AppHarness
8+
9+ if TYPE_CHECKING :
10+ from reflex .testing import AppHarness
611from utils import get_full_url
712
813
Original file line number Diff line number Diff line change 11"""Test utilities for reflex-web tests."""
22
3+ from __future__ import annotations
4+
5+ from typing import TYPE_CHECKING
36from urllib .parse import urljoin
47
5- from reflex .testing import AppHarness
8+ if TYPE_CHECKING :
9+ from reflex .testing import AppHarness
610
711
812def get_full_url (app_harness : AppHarness , path : str ) -> str :
You can’t perform that action at this time.
0 commit comments