"""司机安卓端 — 冒烟测试。"""

import pytest

pytestmark = [pytest.mark.driver_android]


class TestDriverAndroidSmoke:
    """司机安卓端基础验证。"""

    @pytest.mark.p0
    @pytest.mark.smoke
    def test_home_page_loaded(self, driver, ensure_logged_in):
        """验证登录态有效，首页正常。"""
        ensure_logged_in(driver)
        from appium.webdriver.common.appiumby import AppiumBy
        home = driver.find_element(AppiumBy.ACCESSIBILITY_ID, "tab_home")
        assert home.is_displayed(), "首页 tab 应可见"
