mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-19 20:25:31 +00:00
Bug 4339: Further code cleanup
This commit is contained in:
+9
-6
@@ -246,6 +246,15 @@ public class TracTracEventManagementPanelPO extends PageArea {
|
||||
if (!racesToProcess.isEmpty()) {
|
||||
throw new IllegalStateException("Not all given races where selected");
|
||||
}
|
||||
startTrackingForSelectedRaces(expectedBoatClassErrorOrNull);
|
||||
}
|
||||
|
||||
public void startTrackingForAllRaces() {
|
||||
getTrackableRacesTable().selectAllEntries();
|
||||
startTrackingForSelectedRaces(null);
|
||||
}
|
||||
|
||||
private void startTrackingForSelectedRaces(String expectedBoatClassErrorOrNull) {
|
||||
this.startTracking();
|
||||
if (expectedBoatClassErrorOrNull == null) {
|
||||
waitForAjaxRequests();
|
||||
@@ -253,12 +262,6 @@ public class TracTracEventManagementPanelPO extends PageArea {
|
||||
waitForSelectedRacesContainDifferentBoatClassesError(expectedBoatClassErrorOrNull);
|
||||
}
|
||||
}
|
||||
|
||||
public void startTrackingForAllRaces() {
|
||||
getTrackableRacesTable().selectAllEntries();
|
||||
startTracking();
|
||||
waitForAjaxRequests();
|
||||
}
|
||||
|
||||
private void startTracking() {
|
||||
this.startTrackingButton.click();
|
||||
|
||||
Reference in New Issue
Block a user