mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-20 19:20:04 +00:00
Removed duplicate code
This commit is contained in:
1 parent
fbdecee214
commit
a8ab4fbe37
1 file changed
+6
-5
+6
-5
@@ -240,17 +240,18 @@ public class TracTracEventManagementPanelPO extends PageArea {
|
||||
}
|
||||
}
|
||||
table.selectEntry(entryToSelect);
|
||||
this.startTrackingButton.click();
|
||||
ExpectedCondition<Alert> condition = ExpectedConditions.alertIsPresent();
|
||||
if (condition.apply(this.driver) == null) {
|
||||
waitForAjaxRequests();
|
||||
}
|
||||
startTrackingAndWaitForAjaxRequests();
|
||||
}
|
||||
|
||||
public void startTrackingForRaces(List<TrackableRaceDescriptor> races) {
|
||||
CellTablePO<DataEntryPO> table = getTrackableRacesTable();
|
||||
table.selectEntries(() -> table.getEntries().stream().filter(e -> races.contains(
|
||||
new TrackableRaceDescriptor(e.getColumnContent("Event"), e.getColumnContent("Race"), e.getColumnContent("Boat Class")))));
|
||||
startTrackingAndWaitForAjaxRequests();
|
||||
}
|
||||
}
|
||||
|
||||
private void startTrackingAndWaitForAjaxRequests() {
|
||||
this.startTrackingButton.click();
|
||||
ExpectedCondition<Alert> condition = ExpectedConditions.alertIsPresent();
|
||||
if (condition.apply(this.driver) == null) {
|
||||
|
||||
Reference in new issue
Block a user