Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
24 changes: 24 additions & 0 deletions __tests__/Stress Tests/stress-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import http from 'k6/http';
import { sleep } from 'k6';

export let options = {
stages: [
{ duration: '1m', target: 100 }, // ramp up to 100 users
{ duration: '2m', target: 100 }, // stay at 100 users
{ duration: '1m', target: 0 }, // ramp down
],
};

export default function () {
http.get('https://team3docker.uksouth.cloudapp.azure.com/home');
sleep(1);
}

// install homebrew and k6 if not installed:
// /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
// echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
// eval "$(/opt/homebrew/bin/brew shellenv)"
// brew install k6

// to run: k6 run "/Users/olabielas/Desktop/COMP0067_2025_Team3-1/__tests__/Stress Tests/stress-test"
// (or equivalent)
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"html2canvas": "^1.4.1",
"jspdf": "^3.0.1",
"jspdf-autotable": "^5.0.2",
"k6": "^0.0.0",
"libphonenumber-js": "^1.12.6",
"lodash": "^4.17.21",
"next": "15.1.2",
Expand Down
2 changes: 1 addition & 1 deletion src/actions/email/sendInvite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function sendInviteEmail(name: string, email: string, patientId: st
<p>Dear ${name},</p>
<p>Your patient ${patientName} would like to share their symptoms data with you on our platform. </p>
<p>Register your account to view their spidergrams and track their data.</p>
<p>Here is a link to our website: https://team3.uksouth.cloudapp.azure.com</p>
<p>Here is a link to our website: https://team3docker.uksouth.cloudapp.azure.com/register</p>
<p>Kind regards,</p>
<p>The Spider team</p>
`,
Expand Down
2 changes: 1 addition & 1 deletion src/actions/email/sendReset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export async function sendPasswordReset(email: string) {
return { success: false, error: 'Failed to update user in database.' };
}

const resetLink = `localhost:3000/reset-password/${token}`;
const resetLink = `https://team3docker.uksouth.cloudapp.azure.com//reset-password/${token}`;

const msg = {
to: email,
Expand Down
1 change: 1 addition & 0 deletions src/views/AddClinician.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ const ClinicianLinkPage = ({ id, cliniciansList }: Props) => {
}
} else {
console.log("Please enter you clinician's email before sending the message.")
toast.error("Please enter you clinician's email before sending the message.")
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/views/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const LoginV2 = ({ mode }: { mode: string }) => {
className='text-end'
color='primary.main'
component={Link}
href='/forgotpassword'
href='/forgot-password'
sx={{ textDecoration: 'underline' }}
>
{' '}
Expand Down