Esempio n. 1
0
        public void employee_can_visualize_internshipoffer_creation_form()
        {
            //Arrange

            //Act
            CreateInternshipOfferPage.GoTo();

            //Assert
            CreateInternshipOfferPage.IsDisplayed.Should().BeTrue();
        }
Esempio n. 2
0
        public void employee_can_delete_internship_offer_draft()
        {
            const int firstOfferIndex    = 1;
            int       numberOfDraftBegin = EmployeeIndexInternshipOfferPage.GetDraftOffersCount();
            int       numberOfDraftEnd   = numberOfDraftBegin - 1;

            EmployeeIndexInternshipOfferPage.ClickDraft();
            EmployeeIndexInternshipOfferPage.EditDraft(firstOfferIndex);
            CreateInternshipOfferPage.ClickDeleteButton();
            CreateInternshipOfferPage.ClickModalDeleteButton();
            EmployeeIndexInternshipOfferPage.ClickDraft();
            EmployeeIndexInternshipOfferPage.GetDraftOffersCount().Should().Be(numberOfDraftEnd);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
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();
        }