def test_auditor_can_create_asmt(self, selenium, test_data): """Preconditions: Global editor creates program with mapped control. Global editor creates audit and assigns Global Creator user as an auditor - log in as GC - navigate to audit page => Assessments tab Test that GC can create new asmt in audit.""" creator = test_data["creator"] users.set_current_user(creator) audit = test_data["audit"] expected_asmt = webui_facade.create_asmt(selenium, audit) webui_facade.assert_can_view(selenium, expected_asmt)
def test_auditor_can_create_asmt( self, selenium, test_data ): """Preconditions: Global editor creates program with mapped control. Global editor creates audit and assigns Global Creator user as an auditor - log in as GC - navigate to audit page => Assessments tab Test that GC can create new asmt in audit.""" creator = test_data["creator"] users.set_current_user(creator) audit = test_data["audit"] expected_asmt = webui_facade.create_asmt(selenium, audit) webui_facade.assert_can_view(selenium, expected_asmt)