示例#1
0
        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();
        }
示例#2
0
        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();
        }