From a704f27f546a02a83504f7af7b051de0f39b8abf Mon Sep 17 00:00:00 2001 From: Douglas Cardoso <29078346+douglasdcm@users.noreply.github.com> Date: Mon, 20 Jan 2025 16:16:58 -0300 Subject: [PATCH 1/3] Make improvements - Move the sample.hmtl file to a shared place - Set the `driver` parameter in `async.Application` as optional --- .../mobile/appium/test_appium_integration.py | 2 +- .../caqui_async/asynchronouos/test_async.py | 2 +- examples/web_ui/caqui_async/sample.html | 96 --------- .../caqui_async/synchronous/test_sync.py | 2 +- examples/web_ui/sample.html | 197 ++++++++++++++++++ .../browserist/test_browserist_integration.py | 2 +- .../helium/test_helium_integration.py | 2 +- examples/web_ui/selenium/sample.html | 37 ---- .../selenium/simple/{ => local_page}/home.py | 0 .../{ => local_page}/test_local_page.py | 6 +- examples/web_ui/splinter/sample.html | 37 ---- .../splinter/test_splinter_integration.py | 2 +- guara/assertion.py | 4 +- guara/asynchronous/assertion.py | 3 +- guara/asynchronous/transaction.py | 2 +- 15 files changed, 212 insertions(+), 182 deletions(-) delete mode 100644 examples/web_ui/caqui_async/sample.html create mode 100644 examples/web_ui/sample.html delete mode 100644 examples/web_ui/selenium/sample.html rename examples/web_ui/selenium/simple/{ => local_page}/home.py (100%) rename examples/web_ui/selenium/simple/{ => local_page}/test_local_page.py (86%) delete mode 100644 examples/web_ui/splinter/sample.html diff --git a/examples/mobile/appium/test_appium_integration.py b/examples/mobile/appium/test_appium_integration.py index ae2f655..e5ad844 100644 --- a/examples/mobile/appium/test_appium_integration.py +++ b/examples/mobile/appium/test_appium_integration.py @@ -11,7 +11,7 @@ @mark.skip(reason="Complex setup in CI environment") class TestAppiumIntegration: def setup_method(self, method): - file_path = Path(__file__).parent.resolve() + file_path = Path(__file__).resolve() desired_caps = { "platformName": "Android", "deviceName": "emulator-5554", diff --git a/examples/web_ui/caqui_async/asynchronouos/test_async.py b/examples/web_ui/caqui_async/asynchronouos/test_async.py index 2d80f7b..5cfbd04 100644 --- a/examples/web_ui/caqui_async/asynchronouos/test_async.py +++ b/examples/web_ui/caqui_async/asynchronouos/test_async.py @@ -34,7 +34,7 @@ async def setup_test(self) -> Generator[None, Any, None]: # type: ignore (Generator[None, Any, None]) """ maximum_attempts: int = 5 - file_path: Path = Path(__file__).parent.parent.resolve() + file_path: Path = Path(__file__).parent.parent.parent.parent.resolve() self._driver_url: str = "http://127.0.0.1:9999" capabilities: Dict[str, Dict[Union[Any, str], Any]] = ( CapabilitiesBuilder() diff --git a/examples/web_ui/caqui_async/sample.html b/examples/web_ui/caqui_async/sample.html deleted file mode 100644 index 6d56c95..0000000 --- a/examples/web_ui/caqui_async/sample.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - Sample page - - - -

Basic page

-

This is a sample page to be used to sanity check

- - -
-