Skip to content

Commit

Permalink
Merge branch 'develop' into issue#6819
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 authored Jan 22, 2024
2 parents 44cd0da + 8025200 commit 57926fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions cypress/e2e/facility_spec/locations.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe("Location Management Section", () => {
"Please select a bed type",
];
const locationName = "Test-location";
const locationNameTwo = "Test-location-2";
const locationDescription = "Test Description";
const locationType = "WARD";
const locationMiddleware = "dev_middleware.coronasafe.live";
Expand Down Expand Up @@ -110,14 +111,14 @@ describe("Location Management Section", () => {
assetPage.clickassetupdatebutton();
userCreationPage.verifyErrorMessages(EXPECTED_LOCATION_ERROR_MESSAGES);
// create a new location
facilityPage.fillFacilityName(locationName);
facilityPage.fillFacilityName(locationNameTwo);
facilityLocation.fillDescription(locationDescription);
facilityLocation.selectLocationType(locationType);
facilityLocation.fillMiddlewareAddress(locationMiddleware);
assetPage.clickassetupdatebutton();
facilityLocation.clickNotification();
// verify the reflection
facilityLocation.verifyLocationName(locationName);
facilityLocation.verifyLocationName(locationNameTwo);
facilityLocation.verifyLocationType(locationType);
facilityLocation.verifyLocationDescription(locationDescription);
facilityLocation.verifyLocationMiddleware(locationMiddleware);
Expand Down
2 changes: 0 additions & 2 deletions cypress/pageobject/Asset/AssetFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ export class AssetFilters {
});
}
clickadvancefilter() {
cy.intercept("GET", "**/api/v1/getallfacilities/**").as("advancefilter");
cy.get("#advanced-filter").click();
cy.wait("@advancefilter").its("response.statusCode").should("eq", 200);
}
clickslideoverbackbutton() {
cy.get("#close-slide-over").click();
Expand Down

0 comments on commit 57926fe

Please sign in to comment.