public void employee_can_visualize_internship_offers_associated_to_his_company() { const int NOTIF_ID = 1; NotificationPartialPage.GoTo(); NotificationPartialPage.ClickNotif(NOTIF_ID); }
public void new_company_joined_stagio() { CreateEmployeePage.GoTo(); CreateEmployeePage.SelectCreateNewCompany(); CreateCompanyPage.FillCompanyFieldsWith(TestData.Company6); CreateEmployeePage.FillCreationFormWith(TestData.Employee3); LoginPage.GoTo(); LoginPage.LoginAs(TestData.Coordinator1); const int NOTIF_ID = 3; NotificationPartialPage.GoTo(); NotificationPartialPage.ClickNotif(NOTIF_ID); }
public void student_has_applied_on_an_intershipoffer() { LoginPage.GoTo(); LoginPage.LoginAs(TestData.SubscribedStudent1); StudentIndexInternshipOfferPage.GoTo(); CreateInternshipApplicationPage.GoTo(); CreateInternshipApplicationPage.UploadFile("TestFile.pdf"); PageNavigator.AllUsers.Logout.Select(); LoginPage.GoTo(); LoginPage.LoginAs(TestData.Coordinator1); const int NOTIF_ID = 4; NotificationPartialPage.GoTo(); NotificationPartialPage.ClickNotif(NOTIF_ID); CoordinatorProgressionIndexInternshipApplicationPage.IsDisplayed.Should().BeTrue(); }
public void new_intershipoffer_has_been_created() { LoginPage.GoTo(); LoginPage.LoginAs(TestData.Employee1); CreateInternshipOfferPage.GoTo(); CreateInternshipOfferPage.FillCreationFormWith(TestData.InternshipOfferPublicated1); CreateInternshipOfferPage.SubmitOffer(); PageNavigator.AllUsers.Logout.Select(); LoginPage.GoTo(); LoginPage.LoginAs(TestData.Coordinator1); const int NOTIF_ID = 3; NotificationPartialPage.GoTo(); NotificationPartialPage.ClickNotif(NOTIF_ID); CoordinatorIndexInternshipOfferPage.IsDisplayed.Should().BeTrue(); }
public void student_applied_to_one_of_your_offers() { LoginPage.GoTo(); LoginPage.LoginAs(TestData.SubscribedStudent1); StudentIndexInternshipOfferPage.GoTo(); CreateInternshipApplicationPage.GoTo(); CreateInternshipApplicationPage.UploadFile("TestFile.pdf"); PageNavigator.AllUsers.Logout.Select(); LoginPage.GoTo(); LoginPage.LoginAs(TestData.Employee1); var NOTIF_TEXT = WebMessage.NotificationMessage.A_STUDENT_HAS_APPLIED_ON_ONE_OF_YOUR_OFFERS; NotificationPartialPage.GoTo(); NotificationPartialPage.ClickNotifByText(NOTIF_TEXT); EmployeeIndexInternshipOfferPage.IsDisplayed.Should().BeTrue(); }
public void new_internshipoffer_is_publicated() { LoginPage.GoTo(); LoginPage.LoginAs(TestData.Coordinator1); CoordinatorIndexInternshipOfferPage.GoTo(); PageNavigator.InternshipOffer.Details.Select(TestData.InternshipOfferOnValidation1.Id); CoordinatorIndexInternshipOfferPage.ValidateInternshipOffer(); PageNavigator.AllUsers.Logout.Select(); LoginPage.GoTo(); LoginPage.LoginAs(TestData.SubscribedStudent1); var notifText = WebMessage.NotificationMessage.NEW_INTERNSHIP_OFFER_PUBLICATED; NotificationPartialPage.GoTo(); NotificationPartialPage.ClickNotifByText(notifText); StudentIndexInternshipOfferPage.IsDisplayed.Should().BeTrue(); }