Beispiel #1
0
        public async Task AndNoInput_Next_ShowsError()
        {
            await PageSut.ClickOnElementByText("Next");

            PageSut = AsStep <BlueFlowStepA>();

            var errors = PageSut.Errors();

            CollectionAssert.IsNotEmpty(errors);

            Assert.AreEqual("Value cannot be empty", errors.Single());
        }
Beispiel #2
0
        public async Task AndInputIsOk_Next_ShowsStepB_ThenPreviousKeptInput()
        {
            PageSut.Input.Value = "Ok";
            await PageSut.ClickOnElementByText("Next");

            await AsStep <BlueFlowStepB>().ClickOnElementByText("Previous");

            PageSut = AsStep <BlueFlowStepA>();

            Assert.AreEqual("Ok", PageSut.Input.Value);
            var errors = PageSut.Errors();

            Assert.IsTrue(!errors.Any());
        }