Skip to content

Commit 04c1164

Browse files
committed
Add private route for OrganizationEdit and fix typo in test description
1 parent 02a084b commit 04c1164

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

client/src/Routes.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,16 @@ export default function AppRoutes() {
116116
/>
117117
<Route path="resetPassword/:token" element={<ResetPassword />} />
118118

119+
<Route
120+
path="organizationedit"
121+
element={
122+
<PrivateRoute
123+
roles={["isAdmin", "isDataEntry", "isCoordinator"]}
124+
>
125+
<OrganizationEdit />
126+
</PrivateRoute>
127+
}
128+
/>
119129
<Route
120130
path="organizationedit/:id"
121131
element={

client/tests/organizationEdit.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test.beforeEach(async ({ page, helpers }) => {
55
await helpers.mockLogin();
66
});
77
test.describe("OrganizationEdit", () => {
8-
test("Should allow entering valid stakholder data", async ({ page }) => {
8+
test("Should allow entering valid stakeholder data", async ({ page }) => {
99
await page.getByTestId("menu-button").click();
1010
await page.getByRole("link", { name: "Add New Organization" }).click();
1111
await page.getByRole("textbox", { name: "Latitude *" }).click();

0 commit comments

Comments
 (0)