-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into cypress-parallel
- Loading branch information
Showing
63 changed files
with
2,721 additions
and
1,654 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
# Whitelabelling envs | ||
|
||
REACT_APP_TITLE="CARE" | ||
REACT_APP_META_DESCRIPTION="CoronaSafe Network is an open-source public utility designed by a multi-disciplinary team of innovators and volunteers. CoronaSafe Care is a Digital Public Good recognised by United Nations." | ||
REACT_APP_TITLE=CARE | ||
REACT_APP_META_DESCRIPTION=CoronaSafe Network is an open-source public utility designed by a multi-disciplinary team of innovators and volunteers. CoronaSafe Care is a Digital Public Good recognised by United Nations. | ||
REACT_APP_COVER_IMAGE=https://cdn.coronasafe.network/care_logo.svg | ||
REACT_APP_COVER_IMAGE_ALT=https://cdn.coronasafe.network/care_logo.svg | ||
REACT_APP_CONFIG="" | ||
REACT_PUBLIC_URL="https://care.coronasafe.in" | ||
REACT_PUBLIC_URL=https://care.coronasafe.in | ||
|
||
# Dev envs | ||
ESLINT_NO_DEV_ERRORS=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,7 @@ public/build-meta.json | |
# Using NPM | ||
yarn.lock | ||
pnpm-lock.yaml | ||
bun.lockb | ||
|
||
# Cypress | ||
cypress/downloads | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/// <reference types="cypress" /> | ||
import { afterEach, before, beforeEach, cy, describe, it } from "local-cypress"; | ||
import { AssetPage } from "../../pageobject/Asset/AssetCreation"; | ||
import { v4 as uuidv4 } from "uuid"; | ||
import LoginPage from "../../pageobject/Login/LoginPage"; | ||
|
@@ -84,7 +85,9 @@ describe("Asset", () => { | |
"Test note for asset creation!" | ||
); | ||
|
||
assetPage.interceptAssetCreation(); | ||
assetPage.clickCreateAsset(); | ||
assetPage.verifyAssetCreation(); | ||
assetPage.verifySuccessNotification("Asset created successfully"); | ||
|
||
assetSearchPage.typeSearchKeyword("New Test Asset 2"); | ||
|
@@ -104,19 +107,80 @@ describe("Asset", () => { | |
"Manufacturer's Name Edited", | ||
"Customer Support's Name Edited", | ||
"Vendor's Name Edited", | ||
"Test note for asset creation edited!" | ||
"Test note for asset creation edited!", | ||
"25122021" | ||
); | ||
|
||
assetPage.clickUpdateAsset(); | ||
|
||
assetPage.verifySuccessNotification("Asset updated successfully"); | ||
}); | ||
|
||
it("Configure an asset", () => { | ||
assetPage.openCreatedAsset(); | ||
assetPage.spyAssetConfigureApi(); | ||
assetPage.configureAsset( | ||
"Host name", | ||
"192.168.1.64", | ||
"remote_user", | ||
"2jCkrCRSeahzKEU", | ||
"d5694af2-21e2-4a39-9bad-2fb98d9818bd" | ||
); | ||
assetPage.clickConfigureAsset(); | ||
assetPage.verifyAssetConfiguration(200); | ||
}); | ||
|
||
it("Add an vital monitor asset and configure it", () => { | ||
assetPage.createAsset(); | ||
assetPage.selectFacility("Dummy Facility 1"); | ||
assetPage.selectLocation("Camera Loc"); | ||
assetPage.selectAssetType("Internal"); | ||
assetPage.selectAssetClass("HL7 Vitals Monitor"); | ||
|
||
const qr_id_1 = uuidv4(); | ||
|
||
assetPage.enterAssetDetails( | ||
"New Test Asset Vital", | ||
"Test Description", | ||
"Working", | ||
qr_id_1, | ||
"Manufacturer's Name", | ||
"2025-12-25", | ||
"Customer Support's Name", | ||
phone_number, | ||
"[email protected]", | ||
"Vendor's Name", | ||
serialNumber, | ||
"25122021", | ||
"Test note for asset creation!" | ||
); | ||
assetPage.interceptAssetCreation(); | ||
assetPage.clickCreateAsset(); | ||
assetPage.verifyAssetCreation(); | ||
|
||
assetSearchPage.typeSearchKeyword("New Test Asset Vital"); | ||
assetSearchPage.pressEnter(); | ||
|
||
assetPage.openCreatedAsset(); | ||
assetPage.configureVitalAsset("Host name", "192.168.1.64"); | ||
assetPage.clickConfigureVital(); | ||
}); | ||
|
||
it("Delete an Asset", () => { | ||
assetPage.openCreatedAsset(); | ||
assetPage.interceptDeleteAssetApi(); | ||
assetPage.deleteAsset(); | ||
assetPage.verifyDeleteStatus(); | ||
}); | ||
|
||
it("Import new asset", () => { | ||
assetPage.selectImportOption(); | ||
assetPage.selectImportFacility("Dummy Facility 1"); | ||
assetPage.importAssetFile(); | ||
assetPage.selectImportLocation("Camera Locations"); | ||
assetPage.clickImportAsset(); | ||
|
||
assetPage.verifySuccessNotification("Asset deleted successfully"); | ||
assetPage.verifySuccessNotification("Assets imported successfully"); | ||
}); | ||
|
||
afterEach(() => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.