public void employee_can_visualize_internshipoffer_creation_form() { //Arrange //Act CreateInternshipOfferPage.GoTo(); //Assert CreateInternshipOfferPage.IsDisplayed.Should().BeTrue(); }
public void employee_can_save_a_draft_of_an_internship_offer() { //Arrange EmployeeIndexInternshipOfferPage.GoTo(); var initialDraftOffersCount = EmployeeIndexInternshipOfferPage.GetDraftOffersCount(); IndexEmployeePage.GoTo(); //Act CreateInternshipOfferPage.GoTo(); CreateInternshipOfferPage.FillCreationFormWith(TestData.InternshipOfferDraft2); CreateInternshipOfferPage.SaveDraft(); EmployeeIndexInternshipOfferPage.GoTo(); //Assert EmployeeIndexInternshipOfferPage.GetDraftOffersCount().Should().BeGreaterThan(initialDraftOffersCount); }
public void employee_can_create_internshipoffer() { //Arrange EmployeeIndexInternshipOfferPage.GoTo(); int initialOnValidationOffersCount = EmployeeIndexInternshipOfferPage.GetOnValidationOffersCount(); IndexEmployeePage.GoTo(); //Act CreateInternshipOfferPage.GoTo(); CreateInternshipOfferPage.FillCreationFormWith(TestData.InternshipOfferPublicated1); CreateInternshipOfferPage.SubmitOffer(); EmployeeIndexInternshipOfferPage.GoTo(); //Assert EmployeeIndexInternshipOfferPage.GetOnValidationOffersCount().Should().BeGreaterThan(initialOnValidationOffersCount); }
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(); }