mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-21 15:38:23 -04:00
* This PR provides a fix for the bug reported in [EGD-6081]. The solution adds the `tear_down`-like fixture called after the problematic tests, that enforce focus on `ApplicationDesktop'`s main window. * Additionally similar solution was added to `test_auto_lock` to restore original (30s) lock timeout. [EGD-6081]: https://appnroll.atlassian.net/browse/EGD-6081
22 lines
751 B
Python
22 lines
751 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 time
|
|
import pytest
|
|
|
|
from module_apps.call_utils import get_calllog_count, select_call_button
|
|
|
|
@pytest.mark.rt1051
|
|
@pytest.mark.usefixtures("phone_ends_test_in_desktop")
|
|
@pytest.mark.usefixtures("phone_unlocked")
|
|
@pytest.mark.usefixtures("usb_unlocked")
|
|
def test_call(harness, phone_number, call_duration):
|
|
count_before = get_calllog_count(harness)
|
|
# enter number
|
|
harness.send_number(str(phone_number))
|
|
# call
|
|
select_call_button(harness, call_duration)
|
|
count_after = get_calllog_count(harness)
|
|
|
|
assert count_before + 1 == count_after
|
|
time.sleep(2) # needed to restore after call
|