-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IVYPORTAL-16400 Customize global growl message doesn't work (#945)
* Deprecated API, removed doc * Added GUI Tests
- Loading branch information
1 parent
1908ac1
commit a60ef75
Showing
9 changed files
with
104 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...elenium-test/src_test/com/axonivy/portal/selenium/page/GlobalGrowlIframeTemplatePage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.axonivy.portal.selenium.page; | ||
|
||
import static com.codeborne.selenide.Selenide.$; | ||
|
||
import org.openqa.selenium.By; | ||
|
||
public class GlobalGrowlIframeTemplatePage extends TemplatePage { | ||
|
||
@Override | ||
protected String getLoadedLocator() { | ||
return "#content"; | ||
} | ||
|
||
public TaskWidgetPage clickCancel() { | ||
return clickButton("content-form:cancel"); | ||
} | ||
|
||
public TaskWidgetPage clickProceed() { | ||
return clickButton("content-form:proceed"); | ||
} | ||
|
||
private TaskWidgetPage clickButton(String idSelector) { | ||
waitForElementDisplayed(By.id(idSelector), true); | ||
$("button[id='" + idSelector + "']").click(); | ||
switchToDefaultContent(); | ||
return new TaskWidgetPage(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.