mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-16 09:11:02 +00:00
Add CreateDefaultRegattaDeialog to Selenium Tests
This commit is contained in:
1 parent
ad6d7958cf
commit
4aa7271832
5 files changed
+27
-5
No files matched your search
@@ -39,10 +39,10 @@
|
||||
<system-property>
|
||||
<name>webdriver.firefox.bin</name>
|
||||
<!-- Default binary location on Windows: -->
|
||||
<value>c:/Program Files (x86)/Mozilla Firefox/firefox.exe</value>
|
||||
<!-- <value>c:/Program Files (x86)/Mozilla Firefox/firefox.exe</value>-->
|
||||
<!-- -->
|
||||
<!-- Default binary location on Linux: -->
|
||||
<!-- <value>/usr/bin/firefox</value> -->
|
||||
<value>/home/jan/Downloads/firefox/firefox</value>
|
||||
</system-property>
|
||||
</system-properties>
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ public class HostPage extends PageObject {
|
||||
protected static final int DEFAULT_PAGE_LOAD_TIMEOUT = 60;
|
||||
|
||||
public static final String getGWTCodeServer() {
|
||||
String codeServer = System.getProperty(GWT_CODE_SERVER_PARAMETER_NAME);
|
||||
String codeServer = "127.0.0.1:50802";//System.getProperty(GWT_CODE_SERVER_PARAMETER_NAME);
|
||||
if (codeServer == null) {
|
||||
return NO_CODE_SERVER_PARAMTER_VALUE;
|
||||
}
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package com.sap.sailing.selenium.pages.adminconsole.regatta;
|
||||
|
||||
import org.openqa.selenium.WebDriver;
|
||||
import org.openqa.selenium.WebElement;
|
||||
|
||||
import com.sap.sailing.selenium.pages.common.DataEntryDialogPO;
|
||||
|
||||
public class DefaultRegattaLeaderboardCreateDialogPO extends DataEntryDialogPO {
|
||||
public DefaultRegattaLeaderboardCreateDialogPO(WebDriver driver, WebElement element) {
|
||||
super(driver, element);
|
||||
}
|
||||
}
|
||||
+7
@@ -47,8 +47,15 @@ public class RegattaStructureManagementPanelPO extends PageArea {
|
||||
addSeriesDialog.pressOk();
|
||||
// QUESTION: How do we handle an error (here or in the dialog)?
|
||||
createRegattaDialog.pressOk();
|
||||
DefaultRegattaLeaderboardCreateDialogPO createDefaultRegattaLeaderboardDialog = createDefaultRegattaLeaderboard();
|
||||
createDefaultRegattaLeaderboardDialog.pressCancel();
|
||||
}
|
||||
|
||||
private DefaultRegattaLeaderboardCreateDialogPO createDefaultRegattaLeaderboard() {
|
||||
WebElement dialog = findElementBySeleniumId(this.driver, "CreateDefaultRegattaDialog"); //$NON-NLS-1$
|
||||
return new DefaultRegattaLeaderboardCreateDialogPO(this.driver, dialog);
|
||||
}
|
||||
|
||||
public RegattaListCompositePO getRegattaList() {
|
||||
return new RegattaListCompositePO(this.driver, this.regattaList);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user