def test_edit_invalid_portrait_image( sb, login, setup_portrait_with_portrait_database_and_delete_portrait_database, image_path, alert_message): TableList.click_edit_button_by_name( sb, setup_portrait_with_portrait_database_and_delete_portrait_database[ 'name']) PortraitPage.upload_portrait_image(sb, '编辑', os.getcwd() + image_path) Dialog.click_dialog_footer_button_by_text(sb, '编辑', '取消')
def test_add_invalid_portrait_image(sb, login, setup_portrait_name, image_path, alert_message): PortraitPage.click_add_portrait_button(sb) PortraitPage.upload_portrait_image(sb, '添加人像', os.getcwd() + image_path) PortraitPage.assert_alert_message(sb, alert_message)