Files
MuditaOS/test/pytest/test_dom_dump.py
Radoslaw Wicik 5d16f20edd [EGD-6113] Always run tests on linux release
With original script was able to select build dir to run
against this script always chooses "Release" version
2021-03-30 12:20:17 +02:00

13 lines
422 B
Python

# Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
import pytest
from harness import log
def test_get_dom(harness):
body = {"ui": True, "getWindow": True}
result = harness.endpoint_request("developerMode", "get", body)
#log.info("data {}".format(result))
assert result['body']
assert 'Window' in result['body']['dom']