Skip to content

Commit

Permalink
Merge branch 'develop' into issues/9002/camera-switch-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidSumra authored Nov 22, 2024
2 parents 164a450 + 2fdffa2 commit 8efa146
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { defineConfig } from "cypress";
import cypressSplit from "cypress-split";
import * as dotenv from "dotenv";
import fs from "fs";

dotenv.config();

export default defineConfig({
projectId: "wf7d2m",
defaultCommandTimeout: 10000,
Expand Down Expand Up @@ -32,7 +35,7 @@ export default defineConfig({
requestTimeout: 15000,
},
env: {
API_URL: process.env.REACT_CARE_API_URL ?? "http://localhost:9000",
API_URL: process.env.REACT_CARE_API_URL,
ENABLE_HCX: process.env.REACT_ENABLE_HCX ?? false,
},
});
4 changes: 3 additions & 1 deletion cypress/pageobject/Patient/PatientFileupload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export class PatientFileUpload {

recordAudio() {
cy.get("#record-audio").click();
cy.wait(5000);
cy.wait(2000);
cy.get("#start-recording").click();
cy.wait(2000);
cy.get("#stop-recording").click();
cy.wait(1000);
cy.get("#save-recording").click();
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion src/components/Files/AudioCaptureDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default function AudioCaptureDialog(props: AudioCaptureDialogProps) {
<div>
<h2 className="font-bold text-white">{t("audio__record")}</h2>
<div className="text-secondary-200">{t("audio__record_helper")}</div>
<div className="mt-4">
<div className="mt-4" id="start-recording">
<button
onClick={handleStartRecording}
className="inline-flex aspect-square w-32 items-center justify-center rounded-full bg-white/10 text-6xl text-white hover:bg-white/20"
Expand Down

0 comments on commit 8efa146

Please sign in to comment.