package ru.colibri.ui.steps.general;

import org.jbehave.core.annotations.Aliases;
import org.jbehave.core.annotations.Named;
import org.jbehave.core.annotations.When;
import org.springframework.stereotype.Component;
import ru.colibri.ui.core.steps.AbsSteps;
import ru.yandex.qatools.allure.annotations.Step;

@Component
public class WaitSteps extends AbsSteps {

    @Step
    @When("ожидаем $timeInterval {секунд|секунду|секунды}")
    @Aliases(values = {"подождать $timeInterval {секунд|секунду|секунды}",
                        "подождать \"$timeInterval\" {секунд|секунду|секунды}"})
    public void waitSomeTime(@Named("$timeInterval") int timeInterval) throws InterruptedException {
        Thread.sleep(timeInterval * 1000);
    }
}
@@ -35,53 +35,8 @@
 l;%0A%0A
-import org.jbehave.core.annotations.Aliases;%0A
 impo
@@ -337,169 +337,28 @@
 en(%22
+%7B
 %D0%BE%D0%B6%D0%B8%D0%B4%D0%B0%D0%B5%D0%BC
- $timeInterval %7B%D1%81%D0%B5%D0%BA%D1%83%D0%BD%D0%B4%7C%D1%81%D0%B5%D0%BA%D1%83%D0%BD%D0%B4%D1%83%7C%D1%81%D0%B5%D0%BA%D1%83%D0%BD%D0%B4%D1%8B%7D%22)%0A    @Aliases(values = %7B%22%D0%BF%D0%BE%D0%B4%D0%BE%D0%B6%D0%B4%D0%B0%D1%82%D1%8C $timeInterval %7B%D1%81%D0%B5%D0%BA%D1%83%D0%BD%D0%B4%7C%D1%81%D0%B5%D0%BA%D1%83%D0%BD%D0%B4%D1%83%7C%D1%81%D0%B5%D0%BA%D1%83%D0%BD%D0%B4%D1%8B%7D%22,%0A                        %22%D0%BF%D0%BE%D0%B4%D0%BE%D0%B6%D0%B4%D0%B0%D1%82%D1%8C %5C%22
+%7C%D0%BF%D0%BE%D0%B4%D0%BE%D0%B6%D0%B4%D0%B0%D1%82%D1%8C%7D 
 $tim
@@ -370,10 +370,8 @@
 rval
-%5C%22
  %7B%D1%81%D0%B5
@@ -392,17 +392,16 @@
 %D0%B5%D0%BA%D1%83%D0%BD%D0%B4%D1%8B%7D%22
-%7D
 )%0A    pu

add Aliases (#32)