def test_admin_user_login(browser): """ GIVEN user is asked to login via dashbord WHEN user login as admin user THEN perx main page with all functions in side bar is displayed """ login_page = LoginPage(browser) login_page.start() login_page.login(email="*****@*****.**", password="******") admin_page = AdminPage(browser) admin_page.start() # Check that admin has sufficient right to access all functionality assert admin_page.get_side_bar_menu_item( AdminPage.REPORTS_MENU_ITEM).size != 0 assert admin_page.get_side_bar_menu_item( AdminPage.REWARDS_MENU_ITEM).size != 0 assert admin_page.get_side_bar_menu_item( AdminPage.CAMPAIGNS_MENU_ITEM).size != 0 assert admin_page.get_side_bar_menu_item( AdminPage.LOYALTIES_MENU_ITEM).size != 0 assert admin_page.get_side_bar_menu_item( AdminPage.TRANSACTION_RULES_MENU_ITEM).size != 0 assert admin_page.get_side_bar_menu_item( AdminPage.MERCHANTS_MENU_ITEM).size != 0 assert admin_page.get_side_bar_menu_item( AdminPage.CUSTOMER_MANAGEMENT_MENU_ITEM).size != 0 assert admin_page.get_side_bar_menu_item( AdminPage.SETTINGS_MENU_ITEM).size != 0 assert admin_page.get_side_bar_menu_item( AdminPage.BUSINESS_INTELLIGENCE_MENU_ITEM).size != 0
def set_up(self): """ 前置操作 :return: """ global over_view_page, admin_page over_view_page = OverViewPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理')
def set_up(self): """ 前置操作 :return: """ global my_knowledge_page, admin_page my_knowledge_page = MyKnowledgePage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理')
def set_up(self): """ 前置操作 :return: """ global my_todo_page, admin_page my_todo_page = MyTodoPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理')
def set_up(self): """ 前置操作 :return: """ global record_manage_page, admin_page record_manage_page = RecordManagePage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理')
def set_up(self): """ 前置操作 :return: """ global message_list_page, admin_page message_list_page = MessageListPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理')
def set_up(self): """ 前置操作 :return: """ global my_application_page, admin_page my_application_page = MyApplicationPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理')
def set_up(self): """ 前置操作 :return: """ global channel_manage_page, admin_page channel_manage_page = ChannelManagePage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/渠道业务管理')
def set_up(self): """ 前置操作 :return: """ global consumable_list_page, admin_page consumable_list_page = ConsumableListPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/渠道资源管理/库存管理')
def set_up(self): """ 前置操作 :return: """ global game_store_page, admin_page game_store_page = GameStorePage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/游戏储备管理')
def set_up(self): """ 前置操作 :return: """ global ledger_manage_page, admin_page ledger_manage_page = LedgerManagePage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/渠道资源管理')
def set_up(self): """ 前置操作 :return: """ global resource_apply_page, admin_page resource_apply_page = ResourceApplyFormPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/渠道资源管理')
def set_up(self): """ 前置操作 :return: """ global parts_loss_page, admin_page parts_loss_page = PartsLossPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/渠道终端管理/报表统计')
def set_up(self): """ 前置操作 :return: """ global type_manage_page, admin_page type_manage_page = TypeManagePage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/渠道资源管理/基本信息管理')
def set_up(self): """ 前置操作 :return: """ global knowledge_review_page, admin_page knowledge_review_page = KnowledgeReviewPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/渠道终端管理/维护知识库')
def set_up(self): """ 前置操作 :return: """ global game_online_plan_page, admin_page game_online_plan_page = GameOnlinePlanPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/游戏发行管理')
def set_up(self): """ 前置操作 :return: """ global out_store_page, admin_page out_store_page = OutStoreManagePage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/渠道资源管理/出入库管理')
def set_up(self): """ 前置操作 :return: """ global city_money_page, admin_page city_money_page = CityMoneyPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/资金结算管理')
def set_up(self): """ 前置操作 :return: """ global repair_work_page, admin_page repair_work_page = RepairWorkPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/渠道终端管理/维修管理')
def set_up(self): """ 前置操作 :return: """ global fund_config_page, admin_page fund_config_page = FundConfigPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/资金结算管理')
def set_up(self): """ 前置操作 :return: """ global assessment_list_page, admin_page assessment_list_page = AssessmentListPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/渠道绩效管理/渠道考核')
def set_up(self): """ 前置操作 :return: """ global dev_plan_list_page, admin_page dev_plan_list_page = DevPlanListPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/渠道业务管理/年度发展计划')
def set_up(self): """ 前置操作 :return: """ global level_assess_page, admin_page level_assess_page = LevelAssessPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/渠道绩效管理/渠道等级')
def set_up(self): """ 前置操作 :return: """ global device_list_page, admin_page device_list_page = DeviceListPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/渠道终端管理/设备管理')
def set_up(self): """ 前置操作 :return: """ global parts_list_page, admin_page parts_list_page = PartsListPage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/渠道资源管理/库存管理')
def set_up(self): """ 前置操作 :return: """ global device_failure_page, admin_page device_failure_page = DeviceFailurePage(self.driver) admin_page = AdminPage(self.driver) admin_page.into_subsystem('业务管理') admin_page.select_menu('首页/渠道终端管理/报表统计')