Created
March 14, 2023 12:01
-
-
Save skolobov/a34a6089c30a6bf15d36821d3fc02473 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pytest -n auto --dist loadgroup ./chromium_based/test_chromium_smoke_tests.py | |
============================= test session starts ============================== | |
platform darwin -- Python 3.11.2, pytest-7.2.1, pluggy-1.0.0 | |
rootdir: /Users/skolobov/Code/ControlRooms/controlrooms-app, configfile: pytest.ini | |
plugins: playwright-0.3.0, xdist-3.2.0, asyncio-0.20.3, base-url-2.0.0, repeat-0.9.1 | |
asyncio: mode=Mode.AUTO | |
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I | |
gw0 [7] / gw1 [7] / gw2 [7] / gw3 [7] / gw4 [7] / gw5 [7] / gw6 [7] / gw7 [7] | |
......F [100%] | |
=================================== FAILURES =================================== | |
________ test_chromium_smoke_oci_beaumont[data_oci_beaumont0-chromium] _________ | |
[gw1] darwin -- Python 3.11.2 /Users/skolobov/Code/ControlRooms/controlrooms-app/tests/.venv/bin/python | |
chromium_login_oci_save_session = (<Page url='https://app.oci.controlrooms.ai/t/2/analyze?subsystems=56'>, <BrowserContext browser=<Browser type=<Browse...ov/Library/Caches/ms-playwright/chromium-1048/chrome-mac/Chromium.app/Contents/MacOS/Chromium> version=111.0.5563.19>>) | |
data_oci_beaumont = ('Beaumont', '08/02/2023 09:09:00', '08/02/2023 13:09:00', 'DA-214 Ammonia Syngas', '3', 'TI-5000-9A.PV') | |
page = (<Page url='https://app.oci.controlrooms.ai/t/2/analyze?subsystems=56'>, <BrowserContext browser=<Browser type=<Browse...ov/Library/Caches/ms-playwright/chromium-1048/chrome-mac/Chromium.app/Contents/MacOS/Chromium> version=111.0.5563.19>>) | |
@pytest.mark.asyncio | |
async def test_chromium_smoke_oci_beaumont(chromium_login_oci_save_session, data_oci_beaumont, page: Page): | |
''' Test that https://app.oci.controlrooms.ai/ and it's systems are working properly ''' | |
plant, past_date_start, past_date_end, selected_system, system_number, system_tag = data_oci_beaumont | |
''' Login ''' | |
page = chromium_login_oci_save_session | |
''' Select plant from list ''' | |
await select_plant(plant, page[0]) | |
await page[0].wait_for_load_state('load') | |
''' Assert that system is visible and select it ''' | |
await select_system_by_order(selected_system, system_number, page[0]) | |
''' Select custom time in past ''' | |
await select_custom_time(past_date_start, past_date_end, page[0]) | |
''' Select system tag and assert charts are loaded''' | |
> await select_tag_name(system_tag, page[0]) | |
chromium_based/test_chromium_smoke_tests.py:32: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
chromium_based/methods/select_tags.py:13: in select_tag_name | |
await first_tag.click() | |
.venv/lib/python3.11/site-packages/playwright/async_api/_generated.py:15298: in click | |
await self._impl_obj.click( | |
.venv/lib/python3.11/site-packages/playwright/_impl/_locator.py:146: in click | |
return await self._frame.click(self._selector, strict=True, **params) | |
.venv/lib/python3.11/site-packages/playwright/_impl/_frame.py:489: in click | |
await self._channel.send("click", locals_to_params(locals())) | |
.venv/lib/python3.11/site-packages/playwright/_impl/_connection.py:44: in send | |
return await self._connection.wrap_api_call( | |
.venv/lib/python3.11/site-packages/playwright/_impl/_connection.py:419: in wrap_api_call | |
return await cb() | |
.venv/lib/python3.11/site-packages/playwright/_impl/_connection.py:79: in inner_send | |
result = next(iter(done)).result() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <Future finished exception=TimeoutError('Timeout 30000ms exceeded.\n=========================== logs ===========================\nwaiting for get_by_text("TI-5000-9A.PV")\n============================================================')> | |
def result(self): | |
"""Return the result this future represents. | |
If the future has been cancelled, raises CancelledError. If the | |
future's result isn't yet available, raises InvalidStateError. If | |
the future is done and has an exception set, this exception is raised. | |
""" | |
if self._state == _CANCELLED: | |
exc = self._make_cancelled_error() | |
raise exc | |
if self._state != _FINISHED: | |
raise exceptions.InvalidStateError('Result is not ready.') | |
self.__log_traceback = False | |
if self._exception is not None: | |
> raise self._exception.with_traceback(self._exception_tb) | |
E playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded. | |
E =========================== logs =========================== | |
E waiting for get_by_text("TI-5000-9A.PV") | |
E ============================================================ | |
../../../../.asdf/installs/python/3.11.2/lib/python3.11/asyncio/futures.py:203: TimeoutError | |
=========================== short test summary info ============================ | |
FAILED chromium_based/test_chromium_smoke_tests.py::test_chromium_smoke_oci_beaumont[data_oci_beaumont0-chromium] | |
========================= 1 failed, 6 passed in 47.68s ========================= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment