コード例 #1
0
        public void student_can_apply_to_an_offer()
        {
            CreateInternshipApplicationPage.GoTo();
            CreateInternshipApplicationPage.UploadFile("TestFile.pdf");

            HomePage.HasFeedBackMessage(WebMessage.InternshipApplicationMessage.APPLICATION_CREATE_SUCCESS).Should().BeTrue();
        }
コード例 #2
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();
        }
コード例 #3
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();
        }