#120 try to run test in docker
This commit is contained in:
parent
678397e970
commit
828d320e0f
@ -22,7 +22,7 @@ checkRun:
|
|||||||
|
|
||||||
checkStyle:
|
checkStyle:
|
||||||
stage: test
|
stage: test
|
||||||
script: ./gradlew check -x test
|
script: ./gradlew check
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
@ -8,9 +8,9 @@ import java.text.ParseException;
|
|||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.NoSuchElementException;
|
|
||||||
|
|
||||||
public class KiasPage {
|
public class KiasPage {
|
||||||
|
private final static String KIAS_GRANT_DATE_FORMAT = "dd.MM.yyyy HH:mm";
|
||||||
private WebDriver driver;
|
private WebDriver driver;
|
||||||
|
|
||||||
public KiasPage(WebDriver webDriver) {
|
public KiasPage(WebDriver webDriver) {
|
||||||
@ -23,10 +23,9 @@ public class KiasPage {
|
|||||||
driver.findElement(By.id("js-ctrlNext")).click();
|
driver.findElement(By.id("js-ctrlNext")).click();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} catch (NoSuchElementException e) {
|
} finally {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<WebElement> getPageOfGrants() {
|
public List<WebElement> getPageOfGrants() {
|
||||||
@ -41,7 +40,7 @@ public class KiasPage {
|
|||||||
|
|
||||||
public Date parseDeadLineDate(WebElement grantElement) throws ParseException {
|
public Date parseDeadLineDate(WebElement grantElement) throws ParseException {
|
||||||
String deadlineDate = getFirstDeadline(grantElement); //10.06.2019 23:59
|
String deadlineDate = getFirstDeadline(grantElement); //10.06.2019 23:59
|
||||||
SimpleDateFormat formatter = new SimpleDateFormat("dd.MM.yyyy HH:mm");
|
SimpleDateFormat formatter = new SimpleDateFormat(KIAS_GRANT_DATE_FORMAT);
|
||||||
return formatter.parse(deadlineDate);
|
return formatter.parse(deadlineDate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user