protected override void PerformAs(IPerformer actor) { actor.Perform(Wait.ForAtMost(5).Seconds().OrUntil(EditTicket.TicketLabelsInputBox).IsVisible()); actor.Perform(RemoveAllOfTheLabels.FromTheTicket()); actor.Perform(EnterTheLabels.Named(newLabels)); }
protected override void PerformAs(IPerformer actor) { actor.Perform(OpenTheirBrowserOn.ThePage <CreateNewTicket>()); if (!String.IsNullOrEmpty(details.Title)) { actor.Perform(Enter.TheText(details.Title).Into(CreateNewTicket.TicketTitle)); } if (!String.IsNullOrEmpty(details.Description)) { actor.Perform(Enter.TheText(details.Description).Into(CreateNewTicket.TicketDescription)); } if (!String.IsNullOrEmpty(details.Labels)) { actor.Perform(EnterTheLabels.Named(details.Labels)); } if (!String.IsNullOrEmpty(details.Sprint)) { actor.Perform(Select.Item(details.Sprint).From(CreateNewTicket.TicketSprint)); } if (!String.IsNullOrEmpty(details.Type)) { actor.Perform(Select.Item(details.Type).From(CreateNewTicket.TicketType)); } actor.Perform(Navigate.ToAnotherPageByClicking(CreateNewTicket.CreateButton)); }