feat: 添加模拟器卸载应用测试功能并优化构建配置
- 新增模拟器卸载应用UI测试功能及相关测试图片 - 添加本地Gradle初始化脚本和构建脚本 - 更新Gradle版本至9.0并优化仓库配置 - 修复布局文件中的重复元素和警告 - 增加构建警告修复文档 - 优化模拟器控制类功能
This commit is contained in:
@@ -57,3 +57,13 @@ def test_close_emulator(emulator):
|
||||
if emulator.is_running():
|
||||
emulator.close()
|
||||
assert not emulator.is_running(), "模拟器关闭失败"
|
||||
|
||||
|
||||
def test_uninstall_app(emulator):
|
||||
"""测试卸载 flomo app"""
|
||||
time.sleep(3)
|
||||
if not emulator.is_running():
|
||||
pytest.skip("模拟器未运行")
|
||||
|
||||
result = emulator.uninstall_app_ui()
|
||||
assert result, "卸载 app 失败"
|
||||
|
||||
Reference in New Issue
Block a user