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
56
67# Add tests directory to Python path for absolute imports
78sys .path .insert (0 , str (Path (__file__ ).parent ))
@@ -22,8 +23,6 @@ def reflex_web_app():
2223 ]
2324 )
2425
25- from reflex .testing import AppHarness
26-
2726 with AppHarness .create (root = app_root ) as harness :
2827 yield harness
2928
Original file line number Diff line number Diff line change 1- from __future__ import annotations
2-
31import re
4- from typing import TYPE_CHECKING
52
63import pytest
74from playwright .sync_api import Page , expect
8-
9- if TYPE_CHECKING :
10- from reflex .testing import AppHarness
5+ from reflex .testing import AppHarness
116from utils import get_full_url
127
138
Original file line number Diff line number Diff line change 1- from __future__ import annotations
2-
31import re
42import time
5- from typing import TYPE_CHECKING
63
74import pytest
85from playwright .sync_api import Page , expect
9-
10- if TYPE_CHECKING :
11- from reflex .testing import AppHarness
6+ from reflex .testing import AppHarness
127from utils import get_full_url
138
149
Original file line number Diff line number Diff line change 1- from __future__ import annotations
2-
31import re
4- from typing import TYPE_CHECKING
52
63import pytest
74from playwright .sync_api import Page , expect
8-
9- if TYPE_CHECKING :
10- from reflex .testing import AppHarness
5+ from reflex .testing import AppHarness
116from utils import get_full_url
127
138
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-
53import re
6- from typing import TYPE_CHECKING
74
85import pytest
96from playwright .sync_api import Page , expect
10-
11- if TYPE_CHECKING :
12- from reflex .testing import AppHarness
7+ from reflex .testing import AppHarness
138from utils import get_full_url
149
1510
Original file line number Diff line number Diff line change 1- from __future__ import annotations
2-
3- from typing import TYPE_CHECKING
4-
51import pytest
62from playwright .sync_api import Page , expect
7-
8- if TYPE_CHECKING :
9- from reflex .testing import AppHarness
3+ from reflex .testing import AppHarness
104from utils import get_full_url
115
126
Original file line number Diff line number Diff line change 1- from __future__ import annotations
2-
31import re
4- from typing import TYPE_CHECKING
52
63import pytest
74from playwright .sync_api import Page , expect
8-
9- if TYPE_CHECKING :
10- from reflex .testing import AppHarness
5+ from reflex .testing import AppHarness
116from utils import get_full_url
127
138
Original file line number Diff line number Diff line change 1- from __future__ import annotations
2-
31import re
4- from typing import TYPE_CHECKING
52
63import pytest
74from playwright .sync_api import Page , expect
8-
9- if TYPE_CHECKING :
10- from reflex .testing import AppHarness
5+ from reflex .testing import AppHarness
116from utils import get_full_url
127
138
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
63from urllib .parse import urljoin
74
8- if TYPE_CHECKING :
9- from reflex .testing import AppHarness
5+ from reflex .testing import AppHarness
106
117
128def get_full_url (app_harness : AppHarness , path : str ) -> str :
You can’t perform that action at this time.
0 commit comments