Beispiel #1
0
        public void ThenTheyShouldSeeASprint_EditingFailureMessage()
        {
            var theActor = stage.GetTheActorInTheSpotlight();

            Then(theActor).ShouldSee(TheVisibility.Of(EditSprint.EditFailureMessage))
            .Should()
            .BeTrue("the message should be visible");
        }
Beispiel #2
0
        public void ThenTheyShouldSeeACommentEditingFailureMessage()
        {
            var theActor = stage.GetTheActorInTheSpotlight();

            Then(theActor).ShouldSee(TheVisibility.Of(EditComment.EditCommentFailureMessage))
            .Should()
            .BeTrue(because: "The failure message should be shown");
        }
Beispiel #3
0
        public void ThenTheyShouldSeeACreateSprintFailureMessage()
        {
            var theActor = stage.GetTheActorInTheSpotlight();

            Then(theActor).ShouldSee(TheVisibility.Of(CreateSprint.FailureMessage))
            .Should()
            .BeTrue(because: "the sprint should not have been created");
        }
Beispiel #4
0
        protected override void PerformAs(IPerformer actor)
        {
            var tickets = actor.Perform(FindTickets.WithTheTitle(title));

            tickets.Elements.Should().NotBeEmpty("At least one ticket must exist");

            actor.Perform(TheVisibility.Of(tickets))
            .Should()
            .BeTrue("The ticket must visible.");
        }
Beispiel #5
0
 protected override void PerformAs(IPerformer actor)
 {
     actor.Perform(TheVisibility.Of(LoginPage.LoginFailureMessage))
     .Should()
     .BeTrue("The failure message should be displayed on the page");
 }
Beispiel #6
0
 protected override void PerformAs(IPerformer actor)
 {
     actor.Perform(TheVisibility.Of(HeaderLoginLogoutWidget.OnAnyPage.CurrentLoginUsername))
     .Should()
     .BeFalse($"{actor.Name} should not be logged in, so they should not see a logged-in username");
 }