@Test @Stories("по дате загрузки") @Severity(value = SeverityLevel.NORMAL) public void statByOffersloadDateTest() throws Exception { stat.clickByLoadDate(); spin.waitSpinner(); stat.checkHighchartsContainner(); stat.checkTable(); }
@Test @Stories("календарь - сравнение сегодня вчера ") @Severity(value = SeverityLevel.NORMAL) public void statByOffersCalendarConpareTest() throws Exception { stat.setCalendarCompareDate(); spin.waitSpinner(); Assertions.checkWebElementExists(stat.getCompareDiv()); Assertions.checkWebElementVisible(stat.getCompareDiv()); stat.checkHighchartsContainner(); stat.checkTable(); }
@Test @Stories("календарь - за сегодня") @Severity(value = SeverityLevel.NORMAL) public void statByOffersCalendarTest() throws Exception { stat.setCalendarDate(); spin.waitSpinner(); stat.checkHighchartsContainner(); stat.checkTable(); String period = stat.getPeriod(); String javaPeriod = utils.getCurrentDate(); Assertions.assertObjectsEquals(period, javaPeriod + " - " + javaPeriod); }
@BeforeMethod public void waitPageLoad() { stat.waitOverview(); spin.waitSpinner(); }