def view_report_workload_small(webdriver, datasets):
    workload_report = Report.view_workload_report(webdriver, project_key=datasets['small_project_key'])

    @print_timing('selenium_agent_view_report_workload_small')
    def measure():
        workload_report.go_to()
        workload_report.wait_for_page_loaded()

    measure()
    PopupManager(webdriver).dismiss_default_popup()
def view_report_created_vs_resolved_small(webdriver, datasets):
    created_vs_resolved = Report.view_created_vs_resolved_report(
        webdriver, project_key=datasets['small_project_key'],
        created_vs_resolved_report_id=datasets['s_report_created_vs_resolved_id']
    )

    @print_timing('selenium_agent_view_report_created_vs_resolved_small')
    def measure():
        created_vs_resolved.go_to()
        created_vs_resolved.wait_for_page_loaded()

    measure()
    PopupManager(webdriver).dismiss_default_popup()