mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-20 04:35:32 +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();
|
||||
@@ -254,12 +263,6 @@ public class TracTracEventManagementPanelPO extends PageArea {
|
||||
}
|
||||
}
|
||||
|
||||
public void startTrackingForAllRaces() {
|
||||
getTrackableRacesTable().selectAllEntries();
|
||||
startTracking();
|
||||
waitForAjaxRequests();
|
||||
}
|
||||
|
||||
private void startTracking() {
|
||||
this.startTrackingButton.click();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user