-
Notifications
You must be signed in to change notification settings - Fork 492
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 useQuery
- Loading branch information
Showing
28 changed files
with
1,544 additions
and
1,365 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
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,21 +1,58 @@ | ||
export class AssetSearchPage { | ||
typeSearchKeyword(keyword: string) { | ||
cy.get("[name='search']").type(keyword); | ||
cy.get("#search").clear(); | ||
cy.get("#search").click().type(keyword); | ||
} | ||
|
||
pressEnter() { | ||
cy.get("[name='search']").type("{enter}"); | ||
} | ||
|
||
verifyUrlChanged(initialUrl: string) { | ||
cy.url().should((currentUrl) => { | ||
expect(currentUrl).not.to.equal(initialUrl); | ||
}); | ||
clickAssetByName(assetName: string) { | ||
cy.get("[data-testid='created-asset-list']").contains(assetName).click(); | ||
} | ||
|
||
verifyBadgeContent(expectedText: string) { | ||
cy.get("[data-testid='Name/Serial No./QR ID']").should( | ||
"contain", | ||
expectedText | ||
); | ||
} | ||
|
||
verifyAssetIsPresent(assetName: string) { | ||
cy.get("[data-testid=created-asset-list]") | ||
.first() | ||
.should("contain", assetName); | ||
} | ||
|
||
clickUpdateButton() { | ||
cy.get("[data-testid='asset-update-button']").contains("Update").click(); | ||
} | ||
|
||
clearAndTypeQRCode(qrCode: string) { | ||
cy.get("#qr_code_id").clear(); | ||
cy.get("#qr_code_id").click().type(qrCode); | ||
} | ||
|
||
clearAndTypeSerialNumber(serialNumber: string) { | ||
cy.get("#serial-number").clear(); | ||
cy.get("#serial-number").click().type(serialNumber); | ||
} | ||
|
||
clickAssetSubmitButton() { | ||
cy.intercept("GET", "**/api/v1/asset/**").as("getAssets"); | ||
cy.get("#submit").click(); | ||
cy.wait("@getAssets").its("response.statusCode").should("eq", 200); | ||
} | ||
|
||
visitAssetsPage() { | ||
cy.visit("/assets"); | ||
} | ||
|
||
verifyAssetListContains(dummyCameraText: string) { | ||
cy.get("[data-testid='created-asset-list']").should( | ||
"contain", | ||
dummyCameraText | ||
); | ||
} | ||
} |
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
Oops, something went wrong.