// Path: src/samples/journey-pattern-sample/src/main/java/net/serenitybdd/demos/todos/pages/todolist/CompleteAll.java
// public class CompleteAll {
//     public static final Target BUTTON = Target.the("Complete all items").locatedBy("#toggle-all");
// }


import net.serenitybdd.demos.todos.pages.todolist.CompleteAll;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Performable;
import net.serenitybdd.screenplay.actions.Click;
import net.thucydides.core.annotations.Step;
package net.serenitybdd.demos.todos.tasks;


public class CompleteAllItems implements Performable {

    @Override
    @Step("Completes item called #itemName")
    public <T extends Actor> void performAs(T theActor) {
// Path: src/samples/journey-pattern-sample/src/main/java/net/serenitybdd/demos/todos/pages/todolist/CompleteAll.java
// public class CompleteAll {
//     public static final Target BUTTON = Target.the("Complete all items").locatedBy("#toggle-all");
// }


// Path: src/samples/journey-pattern-sample/src/main/java/net/serenitybdd/demos/todos/tasks/CompleteAllItems.java
import net.serenitybdd.demos.todos.pages.todolist.CompleteAll;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Performable;
import net.serenitybdd.screenplay.actions.Click;
import net.thucydides.core.annotations.Step;

package net.serenitybdd.demos.todos.tasks;


public class CompleteAllItems implements Performable {

    @Override
    @Step("Completes item called #itemName")
    public <T extends Actor> void performAs(T theActor) {
        theActor.attemptsTo(Click.on(CompleteAll.BUTTON));