def test_rename_peer_floor(sb, login, setup_peer_floor): new_name = f"{setup_peer_floor['name']}N" MapPage.rename_floor_by_root_floor_name(sb, setup_peer_floor['name'], new_name) MapPage.assert_alert_message(sb, '重命名成功!') MapPage.delete_floor_by_name(sb, new_name)
def test_rename_same_peer_floor(sb, login, setup_peer_floor_and_delete_floor): MapPage.rename_floor_by_root_floor_name( sb, setup_peer_floor_and_delete_floor['name'], 'Default') MapPage.assert_alert_message(sb, '地图名已存在') MapPage.click_cancel_in_dialog(sb)