package ru.colibri.ui.steps.general;

import org.jbehave.core.annotations.Alias;
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 {секунд|секунду|секунды}")
    @Alias("подождать $timeInterval {секунд|секунду|секунды}")
    public void waitSomeTime(@Named("$timeInterval") int timeInterval) throws InterruptedException {
        Thread.sleep(timeInterval * 1000);
    }
}
@@ -72,16 +72,18 @@
 ns.Alias
+es
 ;%0Aimport
@@ -437,17 +437,29 @@
   @Alias
-(
+es(values = %7B
 %22%D0%BF%D0%BE%D0%B4%D0%BE%D0%B6%D0%B4%D0%B0
@@ -496,24 +496,105 @@
 %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$timeInterval%5C%22 %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%7D
 )%0A    public

add Aliases (#31)