-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pressure-pop-up' of github.com:sghosh28/care_fe into pr…
…essure-pop-up
- Loading branch information
Showing
409 changed files
with
28,498 additions
and
36,334 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node | ||
{ | ||
"name": "care_fe", | ||
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-18-bullseye", | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": { | ||
"moby": true, | ||
"installDockerBuildx": true, | ||
"version": "latest", | ||
"dockerDashComposeVersion": "v2" | ||
} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": {}, | ||
"extensions": [ | ||
"esbenp.prettier-vscode", | ||
"bradlc.vscode-tailwindcss", | ||
"yoavbls.pretty-ts-errors", | ||
"chenglou92.rescript-vscode" | ||
] | ||
} | ||
}, | ||
"hostRequirements": { | ||
"cpus": 4 | ||
}, | ||
"waitFor": "onCreateCommand", | ||
"postCreateCommand": "npm install", | ||
"postAttachCommand": { | ||
"server": "npm run dev" | ||
}, | ||
"portsAttributes": { | ||
"4000": { | ||
"label": "Application", | ||
"onAutoForward": "openPreview" | ||
} | ||
}, | ||
"forwardPorts": [4000] | ||
} |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Run application", | ||
"type": "node", | ||
"request": "launch", | ||
"cwd": "${workspaceFolder}", | ||
"console": "integratedTerminal", | ||
"runtimeExecutable": "npm", | ||
"runtimeArgs": [ | ||
"run-script", | ||
"dev" | ||
], | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
] | ||
} | ||
] | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/// <reference types="cypress" /> | ||
|
||
import { cy, describe, before, beforeEach, it, afterEach } from "local-cypress"; | ||
import { AssetSearchPage } from "../../pageobject/Asset/AssetSearch"; | ||
import { AssetQRScanPage } from "../../pageobject/Asset/AssetQRScan"; | ||
import { AssetPagination } from "../../pageobject/Asset/AssetPagination"; | ||
import { AssetFilters } from "../../pageobject/Asset/AssetFilters"; | ||
|
||
describe("Asset Tab", () => { | ||
const assetSearchPage = new AssetSearchPage(); | ||
const assetQRScanPage = new AssetQRScanPage(); | ||
const assetPagination = new AssetPagination(); | ||
const assetFilters = new AssetFilters(); | ||
|
||
before(() => { | ||
cy.loginByApi("devdistrictadmin", "Coronasafe@123"); | ||
cy.saveLocalStorage(); | ||
}); | ||
|
||
beforeEach(() => { | ||
cy.restoreLocalStorage(); | ||
cy.awaitUrl("/assets"); | ||
}); | ||
|
||
// search for a element | ||
|
||
it("Search Asset Name", () => { | ||
const initialUrl = cy.url(); | ||
assetSearchPage.typeSearchKeyword("dummy camera 30"); | ||
assetSearchPage.pressEnter(); | ||
assetSearchPage.verifyUrlChanged(initialUrl); | ||
}); | ||
|
||
// scan a asset qr code | ||
|
||
it("Scan Asset QR", () => { | ||
assetQRScanPage.scanAssetQR(); | ||
}); | ||
|
||
// filter the asset and verify the badges are there | ||
|
||
it("Filter Asset", () => { | ||
assetFilters.filterAssets( | ||
"Dummy Facility 1", | ||
"INTERNAL", | ||
"ACTIVE", | ||
"ONVIF Camera" | ||
); | ||
}); | ||
|
||
// Verify the pagination in the page | ||
|
||
it("Next/Previous Page", () => { | ||
assetPagination.navigateToNextPage(); | ||
assetPagination.navigateToPreviousPage(); | ||
}); | ||
|
||
afterEach(() => { | ||
cy.saveLocalStorage(); | ||
}); | ||
}); |
Oops, something went wrong.