~aleteoryx/muditaos

ref: 92e042add14cac3d9d1a6cdbf7a72eaf0749b33c muditaos/test/pytest/test_dom_dump.py -rw-r--r-- 422 bytes
92e042ad — Lefucjusz [BH-2065] Fix race condition between CMake targets 1 year, 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
# 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']