diff --git a/care.config.ts b/care.config.ts index 57b5d79b229..f4f7d708ed0 100644 --- a/care.config.ts +++ b/care.config.ts @@ -31,8 +31,8 @@ const careConfig = { dark: "https://cdn.ohc.network/header_logo.png", }), mainLogo: logo(env.REACT_MAIN_LOGO, { - light: "https://cdn.ohc.network/light-logo.svg", - dark: "https://cdn.ohc.network/black-logo.svg", + light: "/images/care_logo.svg", + dark: "/images/care_logo.svg", }), stateLogo: logo(env.REACT_STATE_LOGO), customLogo: logo(env.REACT_CUSTOM_LOGO), diff --git a/components.json b/components.json new file mode 100644 index 00000000000..eb9af8c208e --- /dev/null +++ b/components.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "new-york", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "tailwind.config.js", + "css": "src/style/index.css", + "baseColor": "zinc", + "cssVariables": false, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "hooks": "@/hooks" + } +} \ No newline at end of file diff --git a/cypress/e2e/auth_spec/auth.cy.ts b/cypress/e2e/auth_spec/auth.cy.ts index 61708bc029a..a535668ef01 100644 --- a/cypress/e2e/auth_spec/auth.cy.ts +++ b/cypress/e2e/auth_spec/auth.cy.ts @@ -6,7 +6,7 @@ describe("Authorisation/Authentication", () => { it("Try login as admin with correct password", () => { cy.loginByApi("devdistrictadmin", "Coronasafe@123"); cy.awaitUrl("/facility"); - cy.get("p").contains("Sign Out").click(); + cy.get("#sign-out-button").contains("Sign Out").click(); cy.url().should("include", "/"); }); diff --git a/cypress/e2e/auth_spec/roles.cy.ts b/cypress/e2e/auth_spec/roles.cy.ts index 07fe3c3d1fb..c84679de943 100644 --- a/cypress/e2e/auth_spec/roles.cy.ts +++ b/cypress/e2e/auth_spec/roles.cy.ts @@ -11,7 +11,7 @@ describe("authentication", () => { }); afterEach(() => { cy.log("Logging out"); - cy.get("p").contains("Sign Out").click(); + cy.get("#sign-out-button").contains("Sign Out").click(); cy.getLocalStorage("care_access_token").should("be.null"); cy.getLocalStorage("care_refresh_token").should("be.null"); cy.url().should("include", "/"); diff --git a/cypress/e2e/patient_spec/PatientDoctorNotes.cy.ts b/cypress/e2e/patient_spec/PatientDoctorNotes.cy.ts index 5b0ceac0c8e..94300cdb5c6 100644 --- a/cypress/e2e/patient_spec/PatientDoctorNotes.cy.ts +++ b/cypress/e2e/patient_spec/PatientDoctorNotes.cy.ts @@ -37,7 +37,7 @@ describe("Patient Discussion notes in the consultation page", () => { cy.verifyNotification(discussionNotesSuccessMessage); cy.closeNotification(); // verify the auto-switching of tab to nurse notes if the user is a nurse - cy.get("p").contains("Sign Out").click(); + cy.get("#sign-out-button").contains("Sign Out").click(); loginPage.loginManuallyAsNurse(); loginPage.ensureLoggedIn(); cy.visit("/patients"); diff --git a/cypress/e2e/users_spec/UsersCreation.cy.ts b/cypress/e2e/users_spec/UsersCreation.cy.ts index e245dd271ac..0f592318888 100644 --- a/cypress/e2e/users_spec/UsersCreation.cy.ts +++ b/cypress/e2e/users_spec/UsersCreation.cy.ts @@ -66,7 +66,7 @@ describe("User Creation", () => { }); it("Update the existing user profile and verify its reflection", () => { - userCreationPage.clickElementById("profilenamelink"); + userCreationPage.clickElementById("user-profile-name"); userCreationPage.verifyElementContainsText( "username-profile-details", "devdistrictadmin", @@ -128,7 +128,7 @@ describe("User Creation", () => { }); it("Update the existing user profile Form Mandatory File Error", () => { - userCreationPage.clickElementById("profilenamelink"); + userCreationPage.clickElementById("user-profile-name"); userCreationPage.clickElementById("edit-cancel-profile-button"); userCreationPage.clearIntoElementById("firstName"); userCreationPage.clearIntoElementById("lastName"); diff --git a/cypress/pageobject/Login/LoginPage.ts b/cypress/pageobject/Login/LoginPage.ts index 3dfd267fab2..7ea94d54737 100644 --- a/cypress/pageobject/Login/LoginPage.ts +++ b/cypress/pageobject/Login/LoginPage.ts @@ -30,7 +30,7 @@ class LoginPage { } ensureLoggedIn(): void { - cy.get("p").contains("Sign Out").should("exist"); + cy.get("#sign-out-button").contains("Sign Out").should("exist"); } } diff --git a/cypress/pageobject/Users/ManageUserPage.ts b/cypress/pageobject/Users/ManageUserPage.ts index 41d41d218d4..f3e0deca53b 100644 --- a/cypress/pageobject/Users/ManageUserPage.ts +++ b/cypress/pageobject/Users/ManageUserPage.ts @@ -74,7 +74,7 @@ export class ManageUserPage { navigateToProfile() { cy.intercept("GET", "**/api/v1/users/**").as("getUsers"); - cy.get("#profilenamelink").click(); + cy.get("#user-profile-name").click(); cy.wait("@getUsers").its("response.statusCode").should("eq", 200); } diff --git a/index.html b/index.html index 6d2c83a0a99..0e302341c85 100644 --- a/index.html +++ b/index.html @@ -70,7 +70,7 @@