Skip to content

Commit

Permalink
fix cypress for updated backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranshu1902 committed Oct 16, 2023
1 parent 28d77b3 commit d9f9f1d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cypress/e2e/users_spec/user_crud.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,7 @@ describe("User management", () => {
.click()
.type("Dummy Facility 1")
.wait("@getFacilities");
cy.get("li[role='option']").first().click();
cy.intercept(/\/api\/v1\/users\/\w+\/add_facility\//).as("addFacility");
cy.get("button[id='link-facility']").click();
cy.wait("@addFacility")
// .its("response.statusCode")
// .should("eq", 201)
.get("span")
.contains("Facility - User Already has permission to this facility");
cy.get("li[role='option']").should("not.exist");
});

it("Next/Previous Page", () => {
Expand Down

0 comments on commit d9f9f1d

Please sign in to comment.