Beispiel #1
0
        public void DadoCredenciaisValidas()
        {
            //arrange
            var resetPO = new ResetSenhaPO(driver);

            resetPO.Visitar();
            resetPO.PreencheLogin("ana.lima");
            resetPO.PreencheEmail("*****@*****.**");

            //act
            resetPO.SubmeterFormulario();

            //asssert
            Assert.Contains("Password Message Sent", driver.PageSource);
        }
Beispiel #2
0
        public void DadoCredenciaisInvalidas()
        {
            //arrange
            var resetPO = new ResetSenhaPO(driver);

            resetPO.Visitar();
            resetPO.PreencheLogin("maria");
            resetPO.PreencheEmail("*****@*****.**");

            //act
            resetPO.SubmeterFormulario();

            //asssert
            Assert.Contains("APPLICATION ERROR #1903", driver.PageSource);
        }