package features;

import static net.serenitybdd.screenplay.GivenWhenThen.givenThat;
import static net.serenitybdd.screenplay.GivenWhenThen.when;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openqa.selenium.WebDriver;

import net.serenitybdd.junit.runners.SerenityRunner;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.abilities.BrowseTheWeb;
import net.thucydides.core.annotations.Managed;

import tasks.Start;
import tasks.StartNewWork;
import tasks.Stop;


@RunWith(SerenityRunner.class)
public class WhenWritingWithStructure {

  @Managed(driver = "phantomjs")
  private WebDriver hisBrowser;
  private final Actor allen = Actor.named("Allen");

  @Before
  public void init() {
    allen.can(BrowseTheWeb.with(hisBrowser));

    givenThat(allen).wasAbleTo(Start.writing());
  }

  @After
  public void done() {
    allen.attemptsTo(Stop.writing());
  }

  @Test
  public void shouldSaveAndLoadWorkOfFixedStructure() {
    when(allen).attemptsTo(StartNewWork.ofType("poem", "sonnet", "shakespearian"));
    // TODO: then(allen).should(seeThat(TheStructured.editors(), contains("h1", "st1", "st2", "st3", "st4")));
  }

}

@@ -12,16 +12,63 @@
 tures;%0A%0A
+import static org.hamcrest.Matchers.contains;%0A%0A
 import s
@@ -125,16 +125,141 @@
 enThat;%0A
+import static net.serenitybdd.screenplay.GivenWhenThen.seeThat;%0Aimport static net.serenitybdd.screenplay.GivenWhenThen.then;%0A
 import s
@@ -361,16 +361,41 @@
 Before;%0A
+import org.junit.Ignore;%0A
 import o
@@ -682,16 +682,48 @@
 naged;%0A%0A
+import questions.TheStructured;%0A
 import t
@@ -1189,16 +1189,46 @@
   @Test%0A
+  @Ignore(%22TDODO: Implement%22)%0A
   public
@@ -1363,20 +1363,11 @@
 ));%0A
+
    
- // TODO:
  the

Disable test until code is there to make it pass