diff --git a/cypress/e2e/facility_spec/locations.cy.ts b/cypress/e2e/facility_spec/locations.cy.ts index 62905b87744..97727e05ca0 100644 --- a/cypress/e2e/facility_spec/locations.cy.ts +++ b/cypress/e2e/facility_spec/locations.cy.ts @@ -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"; @@ -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); diff --git a/cypress/pageobject/Asset/AssetFilters.ts b/cypress/pageobject/Asset/AssetFilters.ts index 9a8d9781786..5ded59f4f63 100644 --- a/cypress/pageobject/Asset/AssetFilters.ts +++ b/cypress/pageobject/Asset/AssetFilters.ts @@ -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();