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

Merge Develop To Staging v24.53.0 (Don't Merge It) For Cypress Flaky Test Detection only #9535

Open
wants to merge 20 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
b0b6f5b
Bump @radix-ui/react-slot from 1.1.0 to 1.1.1 (#9518)
dependabot[bot] Dec 20, 2024
0a14155
Auto label CI: fix permissions (#9514)
Rustix69 Dec 21, 2024
8882fd2
Use sheetjs cdn for the package instead on npm(#9522)
noufalrahim Dec 22, 2024
03574e9
Bump @radix-ui/react-label from 2.1.0 to 2.1.1 (#9519)
dependabot[bot] Dec 22, 2024
2ae3d79
FIXED: Warranty Card UI Improve Responsiveness and Text Overflow Han…
modamaan Dec 22, 2024
a47bd40
FIXED: Implement Dropdown for Hidden Breadcrumb Paths Across the Plat…
modamaan Dec 23, 2024
0291d9c
User Profile Replacement/Removal (#9382)
Jacobjeevan Dec 23, 2024
8244486
fix: remove overlapping of text and icons in shifting table (#9490)
Tanuj1718 Dec 23, 2024
11dc10d
Fix: Discharge patient showing live (#9415)
AdityaJ2305 Dec 23, 2024
fa41f86
Fix: Volunteer access to link facility (#9422)
AdityaJ2305 Dec 23, 2024
7d01705
Bump @tanstack/react-query from 5.62.7 to 5.62.8 (#9537)
dependabot[bot] Dec 23, 2024
6ca96ab
Bump react-pdf from 9.1.1 to 9.2.1 (#9536)
dependabot[bot] Dec 23, 2024
650b196
Use shadcn Tooltip Components across FacilityCard (#9317)
rajku-dev Dec 23, 2024
8434b42
Add View Consultation Button (#9296)
JavidSumra Dec 23, 2024
e002861
Improved the date and actions model for mobile viewports (#9432)
harshit078 Dec 23, 2024
79e098e
Fixed scroll issue in Shifting and Resource (#9475)
Jeffrin2005 Dec 23, 2024
3b8f7a4
Bump @radix-ui/react-dropdown-menu from 2.1.2 to 2.1.4 (#9555)
dependabot[bot] Dec 24, 2024
6994b36
resoruce board filter (#9558)
nihal467 Dec 24, 2024
b84feda
Bump @radix-ui/react-toast from 1.2.2 to 1.2.4 (#9554)
dependabot[bot] Dec 24, 2024
29ab069
Fixes #9559:No Notice Available Icon Misaligned in Mobile View (#9562)
pranavchaitu Dec 25, 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
1 change: 1 addition & 0 deletions .github/workflows/label-merge-conflict.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Auto Label Conflicts

permissions:
contents: read
issues: write
pull-requests: write

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,8 @@ describe("Patient Discharge based on multiple reason", () => {
patientDischarge.interceptDischargePatient();
cy.clickSubmitButton("Acknowledge & Submit");
patientDischarge.verifyDischargePatient();
cy.verifyNotification("Patient Discharged Successfully");
// Verify the consultation dashboard reflection
cy.verifyContentPresence("#consultation-buttons", ["Recovered"]);
// Verify the dashboard and discharge information
cy.verifyContentPresence("#discharge-information", [
patientDischargeReason1,
patientDischargeAdvice,
patientMedicine,
]);
});

afterEach(() => {
Expand Down
83 changes: 9 additions & 74 deletions cypress/e2e/users_spec/UsersCreation.cy.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
import FacilityHome from "pageobject/Facility/FacilityHome";
import ManageUserPage from "pageobject/Users/ManageUserPage";
import UserProfilePage from "pageobject/Users/UserProfilePage";
import { advanceFilters } from "pageobject/utils/advanceFilterHelpers";

import FacilityPage from "../../pageobject/Facility/FacilityCreation";
import LoginPage from "../../pageobject/Login/LoginPage";
import { ManageUserPage } from "../../pageobject/Users/ManageUserPage";
import { UserCreationPage } from "../../pageobject/Users/UserCreation";
import { UserPage } from "../../pageobject/Users/UserSearch";
import {
generateEmergencyPhoneNumber,
generatePhoneNumber,
} from "../../pageobject/utils/constants";
import { generatePhoneNumber } from "../../pageobject/utils/constants";

describe("User Creation", () => {
const userPage = new UserPage();
const loginPage = new LoginPage();
const userProfilePage = new UserProfilePage();
const manageUserPage = new ManageUserPage();
const userCreationPage = new UserCreationPage();
const manageUserPage = new ManageUserPage();
const facilityPage = new FacilityPage();
const facilityHome = new FacilityHome();
const phoneNumber = generatePhoneNumber();
const emergencyPhoneNumber = generateEmergencyPhoneNumber();
const fillFacilityName = "Dummy Facility 40";
const makeId = (length: number) => {
let result = "";
Expand Down Expand Up @@ -54,14 +48,6 @@ describe("User Creation", () => {
"Please select the local body",
];

const EXPECTED_PROFILE_ERROR_MESSAGES = [
"This field is required",
"This field is required",
"Please enter valid phone number",
];
const userName = "devdistrictadmin";
const firstName = "District Editted";
const lastName = "Cypress";
const gender = "Male";
const email = "[email protected]";
const password = "Test@123";
Expand All @@ -74,9 +60,6 @@ describe("User Creation", () => {
const district = "Ernakulam";
const role = "Doctor";
const homeFacility = "Dummy Shifting Center";
const weeklyWorkingHrs = "14";
const dob = "01011998";
const formattedDob = "01/01/1998";
const newUserDob = "25081999";

before(() => {
Expand All @@ -90,55 +73,6 @@ describe("User Creation", () => {
cy.awaitUrl("/users");
});

it("Update the existing user profile and verify its reflection", () => {
manageUserPage.navigateToProfile();
cy.verifyContentPresence("#username-profile-details", [userName]);
userProfilePage.clickEditProfileButton();
userCreationPage.clearFirstName();
userCreationPage.typeFirstName(firstName);
userCreationPage.clearLastName();
userCreationPage.typeLastName(lastName);
userProfilePage.selectGender(gender);
userProfilePage.clearPhoneNumber();
userProfilePage.typePhoneNumber(phoneNumber);
userProfilePage.clearAltPhoneNumber();
userProfilePage.typeWhatsappNumber(emergencyPhoneNumber);
userProfilePage.clearEmail();
userProfilePage.typeEmail(email);
userProfilePage.clearWorkingHours();
userProfilePage.typeWorkingHours(weeklyWorkingHrs);
userProfilePage.typeDateOfBirth(dob);
userProfilePage.interceptUpdateUsers();
userProfilePage.clickUpdateButton();
userProfilePage.verifyUpdateUsersResponse();
cy.verifyContentPresence("#contactno-profile-details", [
"+91" + phoneNumber,
]);
cy.verifyContentPresence("#whatsapp-profile-details", [
"+91" + emergencyPhoneNumber,
]);
cy.verifyContentPresence("#firstname-profile-details", [firstName]);
cy.verifyContentPresence("#lastname-profile-details", [lastName]);
cy.verifyContentPresence("#date_of_birth-profile-details", [formattedDob]);
cy.verifyContentPresence("#emailid-profile-details", [email]);
cy.verifyContentPresence("#gender-profile-details", [gender]);
cy.verifyContentPresence("#averageworkinghour-profile-details", [
weeklyWorkingHrs,
]);
});

it("Update the existing user profile Form Mandatory File Error", () => {
manageUserPage.navigateToProfile();
userProfilePage.clickEditProfileButton();
userCreationPage.clearFirstName();
userCreationPage.clearLastName();
userProfilePage.clearPhoneNumber();
userProfilePage.clearAltPhoneNumber();
userProfilePage.clearWorkingHours();
userProfilePage.clickUpdateButton();
cy.verifyErrorMessages(EXPECTED_PROFILE_ERROR_MESSAGES);
});

it("create new user and verify reflection", () => {
userCreationPage.clickAddUserButton();
userCreationPage.selectFacility(homeFacility);
Expand All @@ -147,14 +81,14 @@ describe("User Creation", () => {
userCreationPage.typeConfirmPassword(password);
userCreationPage.selectHomeFacility(homeFacility);
userPage.typeInPhoneNumber(phoneNumber);
userProfilePage.typeDateOfBirth(newUserDob);
manageUserPage.editDateOfBirth(newUserDob);
userCreationPage.selectUserType(role);
userProfilePage.typeQualification(qualification);
userProfilePage.typeDoctorYoE(experience);
userProfilePage.typeMedicalCouncilRegistration(regNo);
manageUserPage.editQualification(qualification, false);
manageUserPage.editDoctorYoE(experience, false);
manageUserPage.editMedicalCouncilRegistration(regNo, false);
userPage.typeInFirstName(newUserFirstName);
userPage.typeInLastName(newUserLastName);
userProfilePage.typeEmail(email);
manageUserPage.editEmail(email, false);
userCreationPage.selectGender(gender);
userCreationPage.selectState(state);
userCreationPage.selectDistrict(district);
Expand All @@ -178,6 +112,7 @@ describe("User Creation", () => {
});

it("view user redirection from facility page", () => {
loginPage.ensureLoggedIn();
facilityHome.navigateToFacilityHomepage();
facilityHome.typeFacilitySearch(fillFacilityName);
advanceFilters.verifyFilterBadgePresence(
Expand Down
Loading
Loading