Esempio n. 1
0
def test_rename_existing_portrait_database_with_invalid_name(
        sb, login, name, setup_portrait_database_and_delete_portrait_database):
    PortraitPage.rename_portrait_database_by_name(
        sb, setup_portrait_database_and_delete_portrait_database['name'], name)
    PortraitPage.assert_element_text(sb, '.tips > span', '请输入分组名称')
    Dialog.click_dialog_footer_button_by_text(sb, '编辑', '取消')
Esempio n. 2
0
def test_add_portrait_database_with_invalid_name(sb, login, name):
    MenuBar.click_menu_item_by_text(sb, '配置', '人像库管理')
    PortraitPage.add_portrait_database_by_name(sb, name)
    PortraitPage.assert_element_text(sb, '.tips > span', '请输入分组名称')