// Path: src/samples/journey-pattern-sample/src/main/java/net/serenitybdd/demos/todos/pages/todolist/counter/TodoCounter.java
// public class TodoCounter extends PageObject {
//     public static Target ITEM_COUNT =  Target.the("todo count").locatedBy("#todo-count strong");
// }


import net.serenitybdd.demos.todos.pages.todolist.counter.TodoCounter;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Question;
import net.serenitybdd.screenplay.questions.Text;
package net.serenitybdd.demos.todos.questions;


public class TheRemainingItemCount implements Question<Integer> {
    public static TheRemainingItemCount value() {
        return new TheRemainingItemCount();
    }

    @Override
    public Integer answeredBy(Actor actor) {
// Path: src/samples/journey-pattern-sample/src/main/java/net/serenitybdd/demos/todos/pages/todolist/counter/TodoCounter.java
// public class TodoCounter extends PageObject {
//     public static Target ITEM_COUNT =  Target.the("todo count").locatedBy("#todo-count strong");
// }


// Path: src/samples/journey-pattern-sample/src/main/java/net/serenitybdd/demos/todos/questions/TheRemainingItemCount.java
import net.serenitybdd.demos.todos.pages.todolist.counter.TodoCounter;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Question;
import net.serenitybdd.screenplay.questions.Text;

package net.serenitybdd.demos.todos.questions;


public class TheRemainingItemCount implements Question<Integer> {
    public static TheRemainingItemCount value() {
        return new TheRemainingItemCount();
    }

    @Override
    public Integer answeredBy(Actor actor) {
        return Text.of(TodoCounter.ITEM_COUNT)