Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IVYPORTAL-17679 UI Facelift for LTS 12.0.0 - Part 2 #1150

Merged
Merged
Show file tree
Hide file tree
Changes from 97 commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
147f90a
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 7, 2024
422dd3e
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 8, 2024
7b5831b
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Update ap…
ntloc-axonivy Oct 8, 2024
d1e0f0f
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Update ap…
ntloc-axonivy Oct 9, 2024
b7bddd1
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Update An…
ntloc-axonivy Oct 9, 2024
d924b55
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Update Se…
ntloc-axonivy Oct 10, 2024
d333809
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Update Se…
ntloc-axonivy Oct 10, 2024
2a37f73
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 10, 2024
5bf5d3e
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 14, 2024
da6762e
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Update pa…
ntloc-axonivy Oct 14, 2024
c7cc327
Merge branch 'feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part…
ntloc-axonivy Oct 14, 2024
93a314a
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Update slave
ntloc-axonivy Oct 14, 2024
3a92122
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 15, 2024
18bca64
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Update us…
ntloc-axonivy Oct 15, 2024
552a374
Merge branch 'feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part…
ntloc-axonivy Oct 15, 2024
cfbdea8
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 15, 2024
391b44d
Merge branch 'feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part…
tphvu-axonivy Oct 15, 2024
f4f3ffa
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - update us…
ntloc-axonivy Oct 15, 2024
4e435e5
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - update bt…
ntloc-axonivy Oct 15, 2024
c504073
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Hanlde fe…
ntloc-axonivy Oct 16, 2024
c0513fe
Merge branch 'master' into feature/IVYPORTAL-17679-UI-Facelift-for-LT…
ntloc9 Oct 16, 2024
59bf0c7
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Fix align
ntloc9 Oct 16, 2024
6411555
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 17, 2024
05ca598
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 17, 2024
6a34f9a
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 17, 2024
ce7f268
Merge branch 'feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part…
tphvu-axonivy Oct 17, 2024
1e4136b
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Update di…
ntloc-axonivy Oct 17, 2024
3b933b4
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 17, 2024
5bab36e
Merge branch 'feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part…
tphvu-axonivy Oct 17, 2024
06a8fae
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Handle fe…
ntloc-axonivy Oct 17, 2024
f8d7034
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - update cs…
ntloc-axonivy Oct 17, 2024
dc6b8c3
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 17, 2024
2921bfc
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 17, 2024
3009d2d
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 17, 2024
b66928a
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 17, 2024
65ae470
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Update my…
ntloc-axonivy Oct 17, 2024
1298bbf
Merge branch 'feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part…
ntloc-axonivy Oct 17, 2024
dd1f427
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Update logic
ntloc-axonivy Oct 17, 2024
5eaafe9
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Fix css
ntloc-axonivy Oct 18, 2024
b9545d5
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 18, 2024
c3fe0fc
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 18, 2024
42ef2c0
Merge branch 'feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part…
tphvu-axonivy Oct 18, 2024
e3ba467
IVYPORTAL-17679: Implement menu icon
pvthai-axonivy Oct 21, 2024
699156c
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 21, 2024
8633823
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 21, 2024
acdf671
IVYPORTAL-17679: Update menu icon color
pvthai-axonivy Oct 21, 2024
2ad4202
IVYPORTAL-17679: SHOULD REVERT AFTER MASTER CONVERT PROJECT
tphvu-axonivy Oct 21, 2024
1879ee2
Revert "IVYPORTAL-17679: SHOULD REVERT AFTER MASTER CONVERT PROJECT"
tphvu-axonivy Oct 22, 2024
78aff03
Merge branch 'master' into feature/IVYPORTAL-17679-UI-Facelift-for-LT…
tphvu-axonivy Oct 22, 2024
2f86f3b
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 22, 2024
f92c0d7
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 22, 2024
2a56fdb
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 22, 2024
e293542
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 22, 2024
1de3825
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 22, 2024
291c245
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 22, 2024
91cc7a0
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 22, 2024
08f64be
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 22, 2024
8829d3a
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 22, 2024
7691924
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 22, 2024
4ca5f53
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 22, 2024
57b0a6b
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 22, 2024
2a742d2
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 22, 2024
b05c592
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 22, 2024
b0a5f84
Merge branch 'master' into
tphvu-axonivy Oct 23, 2024
cca9e9f
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 23, 2024
0adb3da
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Handle fe…
ntloc-axonivy Oct 23, 2024
ae16fb3
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2-handle feedback
tphvu-axonivy Oct 23, 2024
550eda1
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2-handle feedback
tphvu-axonivy Oct 23, 2024
7b29bbb
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2-handle feedback
tphvu-axonivy Oct 23, 2024
16aaec7
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
lmluat-axonivy Oct 23, 2024
504ebfc
Merge branch 'feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part…
lmluat-axonivy Oct 23, 2024
e929821
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
lmluat-axonivy Oct 23, 2024
afd3147
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2-Handle feedback
tphvu-axonivy Oct 23, 2024
22d9b2d
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
lmluat-axonivy Oct 24, 2024
cc420a5
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2-Handle feedback
tphvu-axonivy Oct 24, 2024
cce05e0
Merge branch 'feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part…
tphvu-axonivy Oct 24, 2024
a15d3f6
IVYPORTAL-17679: Handle feedback menuicon
pvthai-axonivy Oct 24, 2024
ca1de94
IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
tphvu-axonivy Oct 24, 2024
5af46a8
Merge branch 'feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part…
tphvu-axonivy Oct 24, 2024
46454ad
Merge branch 'master' into feature/IVYPORTAL-17679-UI-Facelift-for-LT…
ntloc-axonivy Oct 25, 2024
c219935
Merge branch 'master' into feature/IVYPORTAL-17679-UI-Facelift-for-LT…
ntloc-axonivy Oct 29, 2024
d3ae2a1
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Update code
ntloc-axonivy Oct 30, 2024
4a3a0a9
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Update code
ntloc-axonivy Oct 30, 2024
7f8f38b
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
lmluat-axonivy Oct 31, 2024
107de1a
Merge branch 'feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part…
lmluat-axonivy Oct 31, 2024
e8edd7f
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Update css
ntloc-axonivy Nov 1, 2024
e57998a
Merge branch 'master' into feature/IVYPORTAL-17679-UI-Facelift-for-LT…
ntloc-axonivy Nov 5, 2024
8529164
Merge branch 'feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part…
lmluat-axonivy Nov 5, 2024
9585b33
Merge branch 'master' into feature/IVYPORTAL-17679-UI-Facelift-for-LT…
ntloc-axonivy Nov 7, 2024
bed46dd
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Fix admin…
ntloc-axonivy Nov 7, 2024
e516d43
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Fix UI
ntloc-axonivy Nov 8, 2024
62e9df0
Merge branch 'master' into feature/IVYPORTAL-17679-UI-Facelift-for-LT…
ntloc-axonivy Nov 8, 2024
260cbbf
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - clean code
ntloc-axonivy Nov 8, 2024
da4eab8
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - update re…
ntloc-axonivy Nov 12, 2024
d369c76
Merge branch 'master' into feature/IVYPORTAL-17679-UI-Facelift-for-LT…
ntloc-axonivy Nov 12, 2024
0cb29cf
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Handle fe…
ntloc-axonivy Nov 12, 2024
ec234b7
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Fix sort by
ntloc-axonivy Nov 12, 2024
cc11c6c
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Fix break…
ntloc-axonivy Nov 13, 2024
ec6a2cb
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Revert ab…
ntloc-axonivy Nov 13, 2024
a36aa6b
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Fix info …
ntloc-axonivy Nov 13, 2024
39e465c
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
lmluat-axonivy Nov 14, 2024
10a25ff
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
lmluat-axonivy Nov 14, 2024
d5f7d5c
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
lmluat-axonivy Nov 14, 2024
7e81a61
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2
lmluat-axonivy Nov 14, 2024
13b33e0
feature/IVYPORTAL-17679-UI-Facelift-for-LTS-12.0.0-Part-2 - Handle fe…
ntloc-axonivy Nov 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,19 @@

<h:panelGroup id="#{cc.attrs.componentId}-label-panel" layout="block"
rendered="#{not empty cc.attrs.label and !cc.attrs.floatingLabel}"
styleClass="#{cc.attrs.labelPanelStyleClass}">
styleClass="#{cc.attrs.labelPanelStyleClass} ui-g-6 pl-0">
<p:outputLabel id="#{cc.attrs.componentId}-label" value="#{cc.attrs.label}" for="#{cc.attrs.componentId}"
styleClass="#{cc.attrs.labelStyleClass}" />
</h:panelGroup>

<c:set var="completeMethod" value="#{not empty cc.attrs.completeMethod ? cc.attrs.completeMethod : userSelectionBean.completeUserMethod}" />
<h:panelGroup layout="block"
styleClass="#{cc.attrs.messageStyleClass} #{cc.attrs.floatingLabel ? 'message-for-floating-label' : ''}">
<p:message id="#{cc.attrs.componentId}-message"
for="#{cc.attrs.componentId}" rendered="#{cc.attrs.isRenderedMessage}"/>
</h:panelGroup>
<h:panelGroup id="#{cc.attrs.componentId}-autocomplete-panel" layout="block"
styleClass="user-selection-panel #{cc.attrs.autoCompletePanelStyleClass} #{cc.attrs.floatingLabel and ivyPrimefacesThemeResolver.sessionTheme.contains('serenity') ? 'md-inputfield' : ''} #{cc.attrs.floatingLabel and ivyPrimefacesThemeResolver.sessionTheme.contains('freya') ? 'ui-float-label' : ''}">
styleClass="pl-0 user-selection-panel #{cc.attrs.autoCompletePanelStyleClass} #{cc.attrs.floatingLabel and ivyPrimefacesThemeResolver.sessionTheme.contains('serenity') ? 'md-inputfield' : ''} #{cc.attrs.floatingLabel and ivyPrimefacesThemeResolver.sessionTheme.contains('freya') ? 'ui-float-label' : ''}">
<p:autoComplete id="#{cc.attrs.componentId}"
value="#{cc.attrs.selectedUser}"
scrollHeight="#{cc.attrs.scrollHeight}"
Expand Down Expand Up @@ -104,11 +109,6 @@
styleClass="#{cc.attrs.labelStyleClass}"
rendered="#{cc.attrs.floatingLabel}" />
</h:panelGroup>
<h:panelGroup layout="block"
styleClass="#{cc.attrs.messageStyleClass} #{cc.attrs.floatingLabel ? 'message-for-floating-label' : ''}">
<p:message id="#{cc.attrs.componentId}-message"
for="#{cc.attrs.componentId}" rendered="#{cc.attrs.isRenderedMessage}"/>
</h:panelGroup>
<h:outputScript name="theme-checker.js" library="js" />
<script type="text/javascript">
ThemeChecker.updateLayoutByTheme('#{ivyPrimefacesThemeResolver.sessionTheme}');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
width: 100%;
}

.ui-fluid.user-selection-panel {
display: inline-block;
width: 85%;
}

.message-for-floating-label {
padding-left: 2px;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_DATA_CLASS=ch.ivyteam.ivy.project.portal.test.Data
ch.ivyteam.ivy.designer.preferences.DataClassPreferencePage\:DEFAULT_NAMESPACE=ch.ivyteam.ivy.project.portal.test
ch.ivyteam.ivy.project.preferences\:PORTAL_VERSION=10
ch.ivyteam.ivy.project.preferences\:PRIMEFACES_VERSION=13
ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=114006
ch.ivyteam.ivy.project.preferences\:PROJECT_VERSION=120001
eclipse.preferences.version=1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema" : "https://json-schema.axonivy.com/data-class/11.4.0/data-class.json",
"$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json",
"simpleName" : "Data",
"namespace" : "ch.ivyteam.ivy.project.portal.test",
"isBusinessCaseData" : false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema" : "https://json-schema.axonivy.com/data-class/11.4.0/data-class.json",
"$schema" : "https://json-schema.axonivy.com/data-class/12.0.0/data-class.json",
"simpleName" : "Responsible",
"namespace" : "ch.ivyteam.ivy.project.portal.test",
"isBusinessCaseData" : false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public class AbsencePage extends TemplatePage {

private static final String DELETE_ABSENCE__LINK_ID_PATTERN =
"absences-management-form:absence-table:%d:delete-absence";
private static final String ABSENCE_ACTION_BUTTON_PATTERN =
"absences-management-form:absence-table:%d:absence-action-button";
private static final String EDIT_ABSENCE__LINK_ID_PATTERN = "absences-management-form:absence-table:%d:edit-absence";

@Override
Expand All @@ -44,10 +46,10 @@ public void countAbsences(int expectedSize) {
}

public void showAbsencesInThePast(boolean shown) {
SelenideElement checkBox = $("input[id*='show-absence-in-the-past']");
SelenideElement checkBox = $(".show-absence-in-the-past-panel");
boolean checkBoxSelected = checkBox.isSelected();
if (checkBoxSelected != shown) {
waitForElementClickableThenClick("div[id*='show-absence-in-the-past'] div.ui-chkbox-box");
waitForElementClickableThenClick(checkBox);
}
}

Expand Down Expand Up @@ -171,12 +173,20 @@ public void waitForAbsencesGrowlMessageDisplay() {
$(growlMessage.findElement(By.className("ui-growl-item-container"))).shouldBe(appear, DEFAULT_TIMEOUT);
}

public void clickOnAbsenceAction(int index) {
$(By.id(String.format(ABSENCE_ACTION_BUTTON_PATTERN, index))).click();
}
public void canDeleteAbsence(int index) {
clickOnAbsenceAction(index);
waitForElementDisplayed($(By.id(String.format(DELETE_ABSENCE__LINK_ID_PATTERN, index))), true);
//Click to close
clickOnAbsenceAction(index);
}

public void canEditAbsence(int index) {
clickOnAbsenceAction(index);
waitForElementDisplayed($(By.id(String.format(EDIT_ABSENCE__LINK_ID_PATTERN, index))), true);
clickOnAbsenceAction(index);
}

public void isDeputySettingSectionDisplayed(boolean isDisplay) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,16 @@ private void editGlobalVariable(String variableName, String variableValue, boole
$("button[id$='admin-setting-component:adminTabView:restore-all-to-default-button']")
.shouldBe(Condition.appear, DEFAULT_TIMEOUT).shouldBe(getClickableCondition());
waitForElementDisplayed(By.id("admin-setting-component:adminTabView:settingTable"), true);

var variableRow = $("[id='admin-setting-component:adminTabView:settingTable']").$$(".setting-key")
.filter(Condition.text(variableName)).get(0);

if (variableRow != null) {
SelenideElement editButton = variableRow.ancestor("tr").$(By.cssSelector("a[id$=edit]"));
editButton.shouldBe(clickable(), DEFAULT_TIMEOUT).click();
variableRow.ancestor("tr").scrollTo();
SelenideElement actionButton = variableRow.ancestor("tr").$(By.cssSelector("button[id$=settings-action-button]"));
actionButton.shouldBe(getClickableCondition()).click();
String currentElementId = actionButton.attr("id");
String editButtonId = currentElementId.replace("settings-action-button", "edit-application");
$("a[id='" + editButtonId + "']").shouldBe(getClickableCondition(), DEFAULT_TIMEOUT).click();
}
waitForElementDisplayed(By.cssSelector("[id$=':settingDialogForm']"), true);
saveGlobalVariable(variableValue, isBooleanType);
Expand Down Expand Up @@ -141,7 +144,8 @@ public WebElement getAddApplicationDialog() {
}

public WebElement getEditSettingDialogOfFirstRow() {
waitForElementClickableThenClick($(By.id("admin-setting-component:adminTabView:settingTable:0:edit")));
waitForElementClickableThenClick($(By.id("admin-setting-component:adminTabView:settingTable:0:settings-action-button")));
$("a[id='admin-setting-component:adminTabView:settingTable:0:edit-application']").shouldBe(getClickableCondition(), DEFAULT_TIMEOUT).click();
waitForElementDisplayed(By.id("admin-setting-component:settingDialog"), true);
Sleeper.sleep(300);// Wait a bit focus effects, just only use this for capture screenshot
return findElementById("admin-setting-component:settingDialog");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
import static com.codeborne.selenide.Condition.appear;
import static com.codeborne.selenide.Selenide.$;

import org.openqa.selenium.By;

import com.codeborne.selenide.WebDriverRunner;

public class AnnouncementPage extends TemplatePage {

@Override
Expand All @@ -18,16 +14,16 @@ public String getInfoSummary() {
return $("div[id$='announcement-tab']").shouldBe(appear, DEFAULT_TIMEOUT).$("span.ui-messages-error-summary").shouldBe(appear, DEFAULT_TIMEOUT).getText();
}

public void publish() {
waitForElementClickableThenClick("button[id$='publish-announcement']");
}

public void dePublish() {
waitForElementClickableThenClick("button[id$='delete-announcement']");
public void clickOnSwitchButton() {
waitForElementClickableThenClick("div[id$='announcement-toggle-switch']");
}

public void setAnnoucement(int Language, String content) {
$("input[id$='" + Language + ":announcement-input']").sendKeys(content);
}

public void clickOnSaveButton() {
$("[id$='save-changes-announcement']").shouldBe(getClickableCondition()).click();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void clickOnEditIconOfNews(int index) {
}

public SelenideElement getNewsItemIcon(int index) {
return getNewsItem(index).$(String.format(NEWS_ITEM_ATTR_FORMAT, index, "news-icon:awesome-icon-display"))
return getNewsItem(index).$(String.format(NEWS_ITEM_ATTR_FORMAT, index, "news-icon:current-icon-display"))
.shouldBe(appear, DEFAULT_TIMEOUT);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void proceed() {

public void closeAddAbsenceDialog() {
$("[id='absence-dialog_title']").click();
$("a[id*='close-add-absence-dialog']").shouldBe(appear, DEFAULT_TIMEOUT)
$("div[id='absence-dialog']").$("span.ui-icon-closethick").shouldBe(appear, DEFAULT_TIMEOUT)
.shouldBe(getClickableCondition(), DEFAULT_TIMEOUT).click();
$("[id$='absence-dialog']").shouldBe(Condition.disappear, DEFAULT_TIMEOUT);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ public void addExternalLink(String name, String link, String iconClass, String i

$("input[id$=':search-icon-name-field']").sendKeys(iconClass);

$("a[title='" + iconClass + "']").click();
$("div[id='process-widget:add-external-link-form:external-link-icon:icons-selection-form:icons']")
.$("a[title='" + iconClass + "']").click();
$("div[id$='process-widget:add-external-link-form:external-link-icon:select-icon-dialog']")
.shouldBe(Condition.disappear, DEFAULT_TIMEOUT);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void inputFormattingLanguage(String newLanguage) {
}

public String getLanguageSettingTitle() {
return findElementByCssSelector("h2[id$='language-setting-title']").getText();
return findElementByCssSelector("h5[id$='language-setting-title']").getText();
}

public void changeNewDashboardPageToCase() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public void testNotificationLocalizationWhenChangingLanguageSetting() {
AnnouncementPage announcementPage = adminSettingsPage.openAnnouncementTab();
announcementPage.setAnnoucement(0, "lies mich");
announcementPage.setAnnoucement(1, "Readme1");
announcementPage.publish();
announcementPage.clickOnSwitchButton();
announcementPage.clickOnSaveButton();
adminSettingsPage.clickOnbackToNewDashboardPageOnAdminSetting();
newDashboardPage = new NewDashboardPage();
UserProfilePage userProfilePage = newDashboardPage.openMyProfilePage();
Expand All @@ -47,7 +48,8 @@ public void testValidationForDefaultLanguage() {
NewDashboardPage newDashboardPage = new NewDashboardPage();
AdminSettingsPage adminSettingsPage = newDashboardPage.openAdminSettings();
AnnouncementPage announcementPage = adminSettingsPage.openAnnouncementTab();
announcementPage.publish();
announcementPage.clickOnSwitchButton();
announcementPage.clickOnSaveButton();
assertEquals("Announcement for application default language is required.", announcementPage.getInfoSummary());
}

Expand All @@ -60,7 +62,8 @@ public void testShouldDisplayNotification() {
assertTrue(announcementPage.isDisplayed());

announcementPage.setAnnoucement(1, "Readme1");
announcementPage.publish();
announcementPage.clickOnSwitchButton();
announcementPage.clickOnSaveButton();
adminSettingsPage.clickOnbackToNewDashboardPageOnAdminSetting();
newDashboardPage = new NewDashboardPage();
assertEquals("Readme1", newDashboardPage.getAnnouncementMessage());
Expand All @@ -77,8 +80,9 @@ public void testDepublishNotification() {
announcementPage.setAnnoucement(1, "Readme1");
announcementPage.setAnnoucement(2, "Readme2");
announcementPage.setAnnoucement(3, "Readme3");
announcementPage.publish();
announcementPage.dePublish();
announcementPage.clickOnSwitchButton();
announcementPage.clickOnSwitchButton();
announcementPage.clickOnSaveButton();
assertTrue(newDashboardPage.isAnnouncementMessageNotDisplayed());
}
}
12 changes: 7 additions & 5 deletions AxonIvyPortal/portal/cms/cms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ch.ivy.addon.portalkit.ui.jsf:
editAbsence: Edit absence
from: From
noDeputy: No substitute
noPermissionToSeeThisArea: You do not have the required permission to see this area.
period: Period
personalTaskDuringAbsenceDeputies: Substitutes for personally assigned tasks during the absence
personalTaskPermanentDeputies: Permanent substitutes for personally assigned tasks
Expand Down Expand Up @@ -135,7 +136,7 @@ ch.ivy.addon.portalkit.ui.jsf:
announcementsDisabled: Announcements are disabled.
announcementsEnabled: Announcements are enabled.
defaultLanguageRequiredMessage: Announcement for application default language is required.
disable: Disable
disabled: Disabled
enable: Enable
information: You can announce a general information (e.g. Downtime, Changes, etc.) in this area. This message can be seen by all portal users.
tabTitle: Announcements
Expand Down Expand Up @@ -450,7 +451,7 @@ ch.ivy.addon.portalkit.ui.jsf:
notAvailable: N/A
note: NOTE
numberOfSelectedFilter: selected filters
ok: Ok
ok: OK
'on': 'on'
pleaseAddDocument: Please add a document with the link above.
pleaseAddNote: Please add a note with the link above.
Expand All @@ -465,14 +466,15 @@ ch.ivy.addon.portalkit.ui.jsf:
requiredFieldMessage: This field is required
reserve: Reserve
reset: Reset
resetSettingHeaderText: Reset setting?
resetSettingHeaderText: Reset setting
resetTaskHeaderText: Reset this task?
resetToDefaultMessage: This operation cannot be undone. Are you sure you want to reset to default settings?
resetToStandardFilterHeaderText: 'Reset to standard filter? '
restore: Restore
restoreToDefaultChartHeaderText: Restore to default charts?
role: Role
save: Save
saveAll: Save all
saveSuccessfully: Data saved successfully.
search: Search
second: second
Expand Down Expand Up @@ -512,7 +514,7 @@ ch.ivy.addon.portalkit.ui.jsf:
viewExpired: Your current view expired. You will be redirected to the home page.
viewMode: View mode
visible: Visible
warning: Warning
warning: Warning!
welcomeToPortal: Welcome, please login
wrongDateFormat: Please enter valid date.
year: year
Expand Down Expand Up @@ -1017,7 +1019,7 @@ ch.ivy.addon.portalkit.ui.jsf:
taskWarning:
createdTaskLeave: 'You are about to leave this page. Please choose one of the following options:<UL><LI>&nbsp; &nbsp; Leave: Discard your changes and move to the selected page.<LI>&nbsp; &nbsp; Cancel: Continue working this task.</UL>'
createdTaskLogout: 'You are about to leave this page. Please choose one of the following options:<UL><LI>&nbsp;Logout: Discard your changes and logout.<LI>&nbsp;Cancel: Continue working this task.</UL>'
resetParkTaskBeforeLeave: 'You are about to leave a task in progress. Please choose one of the following options:<UL><LI>Leave: Discard your changes and move to the selected page.<LI>Reserve: Discard your changes and keep the task in your task list.<LI>Cancel: Continue working this task.</UL>'
resetParkTaskBeforeLeave: '<h4>You are about to leave a task in progress.<br/>Please choose one of the following options:</h4><UL><LI>Leave: Discard your changes and move to the selected page.<LI>Reserve: Discard your changes and keep the task in your task list.<LI>Cancel: Continue working this task.</UL>'
resetParkTaskBeforeLogout: 'You are about to leave a task in progress. Please choose one of the following options:<UL><LI>&nbsp; &nbsp; Logout: Discard your changes and logout.<LI>&nbsp; &nbsp; Reserve: Discard your changes and keep the task in your personal task list. Then logout.<LI>&nbsp; &nbsp;
Cancel: Continue working this task.</UL>'
taskNotFound: The task does not exist or you have insufficient rights to see this task.
Expand Down
Loading
Loading