public void GivenTheAuthorityUserIsManagingOrganisationsAndUsers() { GivenThatAnAuthorityUserHasLoggedInOnPublicBrowse(); var organisationDashboardSteps = new OrganisationDashboard.OrganisationsDashboard(Test, Context); organisationDashboardSteps.WhenAnAuthorityUserClicksTheAdminTileOnThePublicBrowseHomepage(); organisationDashboardSteps.ThenTheAuthorityUserIsDirectedToTheOrganisationsDashboard(); }
public void GivenIAmOnARandomOrganisationUserAccountDashboard() { GivenTheAuthorityUserIsManagingOrganisationsAndUsers(); var organisationDashboardSteps = new OrganisationDashboard.OrganisationsDashboard(Test, Context); organisationDashboardSteps.WhenAnOrganisationIsSelected(); organisationDashboardSteps.ThenTheUserAccountsDashboardForThatOrganisationIsDisplayed(); var odsCode = Test.Pages.UserAccountsDashboard.GetODSCode(); Context.Add("ODSCode", odsCode); }