mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2026-03-09 09:47:04 +01:00
42 lines
944 B
Python
42 lines
944 B
Python
import os
|
|
|
|
import pytest
|
|
from flippigator.case import BaseCase
|
|
|
|
os.system("color")
|
|
|
|
|
|
@pytest.mark.smoke
|
|
@pytest.mark.menu
|
|
class TestMain(BaseCase):
|
|
"""
|
|
Here lies the test cases for the menu
|
|
"""
|
|
|
|
def test_main_screen(self, nav): # can have multiple fixtures and args
|
|
""" "
|
|
Negative test case for main screen
|
|
"""
|
|
nav.go_to_main_screen()
|
|
state = nav.get_current_state()
|
|
assert "SDcardIcon" in state and "BTIcon" in state, "Can't reach main screen"
|
|
|
|
def test_menu_option_list(self, nav):
|
|
"""
|
|
Check that all menu options are present
|
|
"""
|
|
nav.go_to_main_screen()
|
|
nav.press_ok()
|
|
assert nav.get_menu_list() == [
|
|
"Sub-GHz",
|
|
"RFID",
|
|
"NFC",
|
|
"Infrared",
|
|
"GPIO",
|
|
"iButton",
|
|
"BadUSB",
|
|
"U2F",
|
|
"Settings",
|
|
"Apps",
|
|
]
|