示例#1
0
        public void employee_can_visualize_internship_offers_associated_to_his_company()
        {
            const int NOTIF_ID = 1;

            NotificationPartialPage.GoTo();
            NotificationPartialPage.ClickNotif(NOTIF_ID);
        }
示例#2
0
        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);
        }
示例#3
0
        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();
        }
示例#4
0
        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();
        }
示例#5
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();
        }
示例#6
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();
        }