Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/mosip/resident-ui into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
Madhuravas committed Jul 31, 2023
2 parents a579039 + ac320a7 commit 924778c
Show file tree
Hide file tree
Showing 17 changed files with 123 additions and 130 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/push_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ jobs:
- name: Build image
run: |
cd "./${{env.SERVICE_LOCATION}}"
docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
# docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
docker build . --build-arg SOURCE=mosip --build-arg COMMIT_HASH=$(git rev-parse HEAD) --build-arg COMMIT_ID=$(git rev-parse --short HEAD) --build-arg BUILD_TIME=${{steps.date.outputs.date}} --file Dockerfile --tag ${{ env.SERVICE_NAME }}
- name: Log into registry
run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
Expand Down
2 changes: 1 addition & 1 deletion resident-ui/src/app/core/services/loginredirect.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class LoginRedirectService {
if(url.split("#")[1] === "/dashboard"){
constructurl = url.replace("/dashboard", "/uinservices/dashboard");
}
window.location.href = `${this.appService.getConfig().baseUrl}${this.appService.getConfig().login}` + btoa(constructurl)+"?state="+stateParam;
window.location.href = `${this.appService.getConfig().baseUrl}${this.appService.getConfig().login}` + btoa(constructurl)+"?state="+stateParam+"&ui_locales="+localStorage.getItem("langCode");
localStorage.setItem("redirectURL", constructurl)
}

Expand Down
19 changes: 13 additions & 6 deletions resident-ui/src/app/shared/header/header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,21 @@ export class HeaderComponent implements OnInit, OnDestroy {

zoom(item:any) {
if(item.fontSize === "12"){
document.body.style["zoom"] = "90%";
//document.body.style["zoom"]= "90%";
document.body.style["transform"] = "scale(1, .9)";
document.body.style["margin-top"] = "-2.5%";
}else if(item.fontSize === "14"){
document.body.style["zoom"]= "100%";

//document.body.style["zoom"]= "100%";
document.body.style["transform"] = "scale(1, 1.0)";
document.body.style["margin-top"] = "0%";
}else if(item.fontSize === "16"){
document.body.style["zoom"]= "110%";
//document.body.style["zoom"]= "110%";
document.body.style["transform"] = "scale(1, 1.1)";
document.body.style["margin-top"] = "2.1%";
}else if(item.fontSize === "18"){
document.body.style["zoom"]= "120%";
//document.body.style["zoom"]= "120%";
document.body.style["transform"] = "scale(1, 1.2)";
document.body.style["margin-top"] = "4.5%";
}
}

Expand Down Expand Up @@ -343,4 +350,4 @@ export class HeaderComponent implements OnInit, OnDestroy {
//window.removeEventListener('scroll', this.scroll, true);
}

}
}
7 changes: 0 additions & 7 deletions resident-ui/src/assets/i18n/ara.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
"route": "uinservices/sharewithpartner",
"description": "يمكن للمقيمين اختيار البيانات المراد مشاركتها مع أي من الشركاء المسجلين للاستفادة من مختلف الخدمات من الطرف الثالث.",
"auditEventId": "ADM-004"
},
{
"displayName": "تحديث بياناتي",
"icon": "assets/images/updatedemographic.png",
"route": "uinservices/updatedemographic",
"description": "يمكن للمقيمين تحديث البيانات الموجودة بالفعل المرتبطة بمعرّف UIN/VID الخاص بهم. يمكن تحديث البيانات التي يمكن تحديثها بما في ذلك الاسم والجنس وتاريخ الميلاد والعنوان والوثائق المرفوعة ورقم الهاتف وعنوان البريد الإلكتروني واللغة المفضلة ، إلخ.",
"auditEventId": "ADM-004"
}
]
},
Expand Down
7 changes: 0 additions & 7 deletions resident-ui/src/assets/i18n/eng.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
"route": "uinservices/sharewithpartner",
"description": " Residents can choose the data to be shared with any of the registered partners to avail various third party services.",
"auditEventId": "ADM-004"
},
{
"displayName": "Update My Data",
"icon": "assets/images/updatedemographic.png",
"route": "uinservices/updatedemographic",
"description": "Residents can update the already existing data associated with their UIN/ VID. The data that can be updated includes name, gender, DOB, address, documents uploaded, phone number, email ID, preferred language, etc.",
"auditEventId": "ADM-004"
}
]
},
Expand Down
7 changes: 0 additions & 7 deletions resident-ui/src/assets/i18n/fra.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
"route": "uinservices/sharewithpartner",
"description": "Les résidents peuvent choisir les données à partager avec l'un des partenaires enregistrés pour bénéficier de divers services tiers.",
"auditEventId": "ADM-004"
},
{
"displayName": "Mettre à jour mes données",
"icon": "assets/images/updatedemographic.png",
"route": "uinservices/updatedemographic",
"description": "Les résidents peuvent mettre à jour les données déjà existantes associées à leur UIN/ VID. Les données pouvant être mises à jour incluent le nom, le genre, la date de naissance, l'adresse, les documents téléchargés, le numéro de téléphone, l'adresse e-mail, la langue préférée, etc.",
"auditEventId": "ADM-004"
}
]
},
Expand Down
7 changes: 0 additions & 7 deletions resident-ui/src/assets/i18n/hin.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
"route": "uinservices/sharewithpartner",
"description": "निवासी विभिन्न तृतीय पक्ष सेवाओं का लाभ उठाने के लिए किसी भी पंजीकृत भागीदार के साथ साझा किए जाने वाले डेटा का चयन कर सकते हैं।",
"auditEventId": "ADM-004"
},
{
"displayName": "मेरा डेटा अपडेट करें",
"icon": "assets/images/updatedemographic.png",
"route": "uinservices/updatedemographic",
"description": "निवासी अपने यूआईएन/वीआईडी ​​से जुड़े पहले से मौजूद डेटा को अपडेट कर सकते हैं। जिन डेटा को अपडेट किया जा सकता है उनमें नाम, लिंग, जन्मतिथि, पता, अपलोड किए गए दस्तावेज़, फ़ोन नंबर, ईमेल आईडी, पसंदीदा भाषा आदि शामिल हैं।",
"auditEventId": "ADM-004"
}
]
},
Expand Down
7 changes: 0 additions & 7 deletions resident-ui/src/assets/i18n/kan.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
"route": "uinservices/sharewithpartner",
"description": "ವಿವಿಧ ಮೂರನೇ ವ್ಯಕ್ತಿಯ ಸೇವೆಗಳನ್ನು ಪಡೆಯಲು ಯಾವುದೇ ನೋಂದಾಯಿತ ಪಾಲುದಾರರೊಂದಿಗೆ ಹಂಚಿಕೊಳ್ಳಲು ನಿವಾಸಿಗಳು ಡೇಟಾವನ್ನು ಆಯ್ಕೆ ಮಾಡಬಹುದು.",
"auditEventId": "ADM-004"
},
{
"displayName": "ನನ್ನ ಡೇಟಾವನ್ನು ನವೀಕರಿಸಿ",
"icon": "assets/images/updatedemographic.png",
"route": "uinservices/updatedemographic",
"description": "ನಿವಾಸಿಗಳು ತಮ್ಮ UIN/VID ಯೊಂದಿಗೆ ಸಂಯೋಜಿತವಾಗಿರುವ ಈಗಾಗಲೇ ಅಸ್ತಿತ್ವದಲ್ಲಿರುವ ಡೇಟಾವನ್ನು ನವೀಕರಿಸಬಹುದು. ಅಪ್‌ಡೇಟ್ ಮಾಡಬಹುದಾದ ಡೇಟಾವು ಹೆಸರು, ಲಿಂಗ, DOB, ವಿಳಾಸ, ಅಪ್‌ಲೋಡ್ ಮಾಡಿದ ದಾಖಲೆಗಳು, ಫೋನ್ ಸಂಖ್ಯೆ, ಇಮೇಲ್ ಐಡಿ, ಆದ್ಯತೆಯ ಭಾಷೆ ಇತ್ಯಾದಿಗಳನ್ನು ಒಳಗೊಂಡಿರುತ್ತದೆ.",
"auditEventId": "ADM-004"
}
]
},
Expand Down
7 changes: 0 additions & 7 deletions resident-ui/src/assets/i18n/spa.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
"route": "uinservices/sharewithpartner",
"description": " Los residentes pueden elegir los datos que se compartirán con cualquiera de los socios registrados para aprovechar varios servicios de terceros.",
"auditEventId": "ADM-004"
},
{
"displayName": "Actualizar mis datos",
"icon": "assets/images/updatedemographic.png",
"route": "uinservices/updatedemographic",
"description": "Los residentes pueden actualizar los datos ya existentes asociados a su UIN/VID. Los datos que se pueden actualizar incluyen nombre, sexo, fecha de nacimiento, dirección, documentos cargados, número de teléfono, ID de correo electrónico, idioma preferido, etc.",
"auditEventId": "ADM-004"
}
]
},
Expand Down
7 changes: 0 additions & 7 deletions resident-ui/src/assets/i18n/tam.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
"route": "uinservices/sharewithpartner",
"description": "பல்வேறு மூன்றாம் தரப்பு சேவைகளைப் பெற, பதிவுசெய்யப்பட்ட கூட்டாளர்களில் எவருடனும் பகிர வேண்டிய தரவை குடியிருப்பாளர்கள் தேர்வு செய்யலாம்.",
"auditEventId": "ADM-004"
},
{
"displayName": "எனது தரவைப் புதுப்பிக்கவும்",
"icon": "assets/images/updatedemographic.png",
"route": "uinservices/updatedemographic",
"description": "குடியிருப்பாளர்கள் தங்கள் UIN/VID உடன் ஏற்கனவே உள்ள தரவை புதுப்பிக்கலாம். புதுப்பிக்கப்படக்கூடிய தரவுகளில் பெயர், பாலினம், DOB, முகவரி, பதிவேற்றப்பட்ட ஆவணங்கள், தொலைபேசி எண், மின்னஞ்சல் ஐடி, விருப்பமான மொழி போன்றவை அடங்கும்.",
"auditEventId": "ADM-004"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void getInformation() throws Exception {

test=extent.createTest("GetInformation test", "verify Login");
Commons.click(test,driver, By.id("dashboardCard2"));
Commons.click(test,driver, By.id("downloadAcknowledgementbtn"));
// Commons.click(test,driver, By.id("downloadAcknowledgementbtn"));

Commons.click(test,driver, By.id("mat-tab-label-0-0"));
//Commons.dropdown(driver, By.id("mat-select-0"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class GetPersonalisedCard extends BaseClass {
public void GetPersonalisedCard() throws Exception {
LoginTest.loginTest();
test=extent.createTest("Get Personalised Card", "verify Login");
Commons.click(test,driver, By.xpath("(//mat-card[@class='mini-card mat-card'])[5]"));
Commons.click(test,driver, By.id("uinservices/personalisedcard"));

Commons.click(test,driver, By.xpath("//span[text()='Name']"));
Commons.click(test,driver, By.xpath("//span[text()='DOB']"));
Expand All @@ -23,9 +23,11 @@ public void GetPersonalisedCard() throws Exception {
Commons.click(test,driver, By.id("downloadFileBtn"));
Commons.click(test,driver, By.id("confirmmessagepopup"));
test.log(Status.INFO, "Click on download");
Commons.click(test,driver, By.id("uinservices/personalisedcard"));

Commons.click(test,driver, By.xpath("//span[text()='Name']"));
Commons.click(test,driver, By.xpath("//span[text()='DOB']"));
Commons.click(test,driver, By.xpath("//span[text()='UIN']"));
Commons.click(test,driver, By.xpath("//span[text()='Perpetual VID']"));
Commons.click(test,driver, By.xpath("//span[text()='Phone Number']"));

Expand All @@ -35,27 +37,47 @@ public void GetPersonalisedCard() throws Exception {
Commons.click(test,driver, By.id("downloadFileBtn"));
Commons.click(test,driver, By.id("confirmmessagepopup"));


test.log(Status.INFO, "Submit with any three checkbox with masked ");
// Commons.click(test,driver, By.id("uinservices/personalisedcard"));
// Commons.click(test,driver, By.xpath("//span[text()='Name']"));
// Commons.click(test,driver, By.xpath("//span[text()='DOB']"));
//
// Commons.click(test,driver, By.id("downloadFileBtn"));
// Commons.click(test,driver, By.id("confirmmessagepopup"));
// Thread.sleep(3000);
//
// Commons.click(test,driver, By.id("Mask It2"));
// Commons.click(test,driver, By.id("Mask It3"));
// Commons.click(test,driver, By.id("Mask It4"));
// Commons.click(test,driver, By.id("downloadFileBtn"));
// Commons.click(test,driver, By.id("confirmmessagepopup"));


Commons.click(test,driver, By.id("uinservices/personalisedcard"));
Commons.click(test,driver, By.xpath("//span[text()='Name']"));
Commons.click(test,driver, By.xpath("//span[text()='DOB']"));

Commons.click(test,driver, By.id("downloadFileBtn"));
Commons.click(test,driver, By.id("confirmmessagepopup"));
Thread.sleep(3000);

Commons.click(test,driver, By.id("Mask It2"));
Commons.click(test,driver, By.id("Mask It3"));
Commons.click(test,driver, By.id("Mask It4"));
Commons.click(test,driver, By.id("downloadFileBtn"));
Commons.click(test,driver, By.id("confirmmessagepopup"));

Commons.click(test,driver, By.xpath("//span[text()='UIN']"));
Commons.click(test,driver, By.xpath("//span[text()='Perpetual VID']"));
Commons.click(test,driver, By.xpath("//span[text()='Phone Number']"));
Commons.click(test,driver, By.xpath("//span[text()='Email ID']"));
Commons.click(test,driver, By.xpath("//span[text()='Address']"));
Commons.click(test,driver, By.xpath("//span[text()='Gender']"));
Commons.click(test,driver, By.xpath("//span[text()='Image']"));
Commons.click(test,driver, By.id("downloadFileBtn"));
Commons.click(test,driver, By.id("confirmmessagepopup"));
test.log(Status.INFO, "Select all check box");

Commons.click(test,driver, By.id("uinservices/personalisedcard"));
Commons.click(test,driver, By.xpath("//span[text()='Name']"));
Commons.click(test,driver, By.xpath("//span[text()='DOB']"));
Commons.click(test,driver, By.xpath("//span[text()='UIN']"));
Commons.click(test,driver, By.xpath("//span[text()='Perpetual VID']"));
Commons.click(test,driver, By.xpath("//span[text()='Phone Number']"));
Commons.click(test,driver, By.xpath("//span[text()='Email ID']"));
Commons.click(test,driver, By.xpath("//span[text()='Address']"));
Commons.click(test,driver, By.xpath("//span[text()='Gender']"));
Commons.click(test,driver, By.xpath("//span[text()='Image']"));
Commons.click(test,driver, By.id("Mask It2"));
Commons.click(test,driver, By.id("Mask It3"));
Commons.click(test,driver, By.id("Mask It4"));
Expand Down
Loading

0 comments on commit 924778c

Please sign in to comment.