public void CreateNewSeniority_Success()
        {
            // arrange
            var seniorityTitle = "Test seniority title";

            // act
            _seniorityPage.ClickOnCreateSeniorityButton();
            _seniorityPage.EnterSeniorityTitle(seniorityTitle);
            _seniorityPage.SubmitSeniority();

            // assert
            Assert.Equal(seniorityTitle, _seniorityPage.GetTitleOfSeniority(1));

            // clean up
            _seniorityPageHelper.DeleteSeniority();
        }
示例#2
0
        public SeniorityPageHelper CreateSeniority()
        {
            string seniorityTitle = "test seniority";

            _seniorityPage.ClickOnCreateSeniorityButton()
            .EnterSeniorityTitle(seniorityTitle)
            .SubmitSeniority();

            return(this);
        }