mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-09 13:50:57 +00:00
lifecycle fix for raceboard and test fail case adjustment
This commit is contained in:
1 parent
18966b8bbb
commit
88eeceefea
5 files changed
+17
-5
No files matched your search
+1
-1
@@ -2922,7 +2922,7 @@ public class RaceMap extends AbstractCompositeComponent<RaceMapSettings> impleme
|
||||
|
||||
@Override
|
||||
public String getId() {
|
||||
return "RaceMap";
|
||||
return RaceMapLifecycle.ID;
|
||||
}
|
||||
|
||||
}
|
||||
+3
-1
@@ -4,6 +4,8 @@ import com.sap.sailing.gwt.ui.client.StringMessages;
|
||||
import com.sap.sse.gwt.client.shared.components.ComponentLifecycle;
|
||||
|
||||
public class RaceMapLifecycle implements ComponentLifecycle<RaceMapSettings, RaceMapSettingsDialogComponent> {
|
||||
public static final String ID = "rml";
|
||||
|
||||
private final StringMessages stringMessages;
|
||||
|
||||
public RaceMapLifecycle(StringMessages stringMessages) {
|
||||
@@ -30,7 +32,7 @@ public class RaceMapLifecycle implements ComponentLifecycle<RaceMapSettings, Rac
|
||||
|
||||
@Override
|
||||
public String getComponentId() {
|
||||
return "rml";
|
||||
return ID;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+6
-1
@@ -61,7 +61,9 @@ public class MasterDataImportPO extends PageArea {
|
||||
}
|
||||
|
||||
void waitForAlertAndDispose(WebDriver driver) throws InterruptedException {
|
||||
while (true) {
|
||||
int i = 0;
|
||||
while (i < DEFAULT_WAIT_TIMEOUT_SECONDS) {
|
||||
i++;
|
||||
try {
|
||||
Alert alert = driver.switchTo().alert();
|
||||
alert.dismiss();
|
||||
@@ -71,5 +73,8 @@ public class MasterDataImportPO extends PageArea {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (i >= DEFAULT_WAIT_TIMEOUT_SECONDS) {
|
||||
throw new NoAlertPresentException();
|
||||
}
|
||||
}
|
||||
}
|
||||
+6
-1
@@ -34,7 +34,9 @@ public class MapSettingsPO extends PageArea {
|
||||
}
|
||||
|
||||
void waitForAlertAndDispose(WebDriver driver) throws InterruptedException {
|
||||
while (true) {
|
||||
int i = 0;
|
||||
while (i < DEFAULT_WAIT_TIMEOUT_SECONDS) {
|
||||
i++;
|
||||
try {
|
||||
Alert alert = driver.switchTo().alert();
|
||||
alert.dismiss();
|
||||
@@ -44,6 +46,9 @@ public class MapSettingsPO extends PageArea {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (i >= DEFAULT_WAIT_TIMEOUT_SECONDS) {
|
||||
throw new NoAlertPresentException();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isWindChartSelected() {
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ public class SettingsTest extends AbstractSeleniumTest {
|
||||
tracTracEvents.setTrackSettings(true, false, false);
|
||||
tracTracEvents.startTrackingForRace(this.trackableRace);
|
||||
TrackedRacesListPO trackedRacesList = tracTracEvents.getTrackedRacesList();
|
||||
trackedRacesList.waitForTrackedRace(this.trackedRace, Status.FINISHED); // with the TracAPI, REPLAY races
|
||||
trackedRacesList.waitForTrackedRace(this.trackedRace, Status.FINISHED, 600); // with the TracAPI, REPLAY races
|
||||
// status FINISHED when done loading
|
||||
|
||||
LeaderboardConfigurationPanelPO leaderboard = adminConsole.goToLeaderboardConfiguration();
|
||||
|
||||
Reference in new issue
Block a user