Skip to content

Commit

Permalink
test: update e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilR8 committed Jan 29, 2024
1 parent fe17e4b commit 33c3706
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions solution/ui/e2e/cypress/e2e/policy-repository.spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe("Policy Repository", () => {
cy.get("search-results__heading").should("not.exist");
cy.get(".search-results-count").should(
"have.text",
"Showing 1 - 2 of 2 documents."
"1 - 2 of 2 documents"
);
cy.get("input#main-content").type("test", { force: true });
cy.get(".search-field .v-input__icon--append button").click({
Expand All @@ -111,14 +111,14 @@ describe("Policy Repository", () => {
.and("have.text", " Search Results ");
cy.get(".search-results-count").should(
"have.text",
"Showing 1 - 2 of 2 results for test within Access to Services."
"1 - 2 of 2 results for test within Access to Services"
);
cy.get(`button[data-testid=remove-subject-3]`).click({
force: true,
});
cy.get(".search-results-count").should(
"have.text",
"Showing 1 - 2 of 2 results for test."
"1 - 2 of 2 results for test"
);
cy.get("input#main-content").clear();
cy.get(".search-field .v-input__icon--append button").click({
Expand All @@ -132,7 +132,7 @@ describe("Policy Repository", () => {
cy.get(".subject__heading").should("not.exist");
cy.get(".search-results-count").should(
"have.text",
"Showing 1 - 2 of 2 documents."
"1 - 2 of 2 documents"
);
});

Expand Down

0 comments on commit 33c3706

Please sign in to comment.