@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); }