Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/ui-spa/integration-tests/non-suspect-journey.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,6 @@ test("Should successfully complete non suspect journey", async ({
await caseAssigneePage.saveAndContinue();
await caseRegistrationSummaryPage.verifyUrl();

await caseRegistrationSummaryPage.changePoliceUnitLinkClick();
await caseAssigneePage.verifyUrl();
await caseAssigneePage.verifyBackLink("/case-registration/case-summary");
await caseAssigneePage.saveAndContinue();
await caseRegistrationSummaryPage.verifyUrl();

await caseRegistrationSummaryPage.changeProsecutorLinkClick();
await caseAssigneePage.verifyUrl();
await caseAssigneePage.verifyBackLink("/case-registration/case-summary");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,19 +293,7 @@ export class CaseRegistrationSummaryPage {
"/case-registration/case-assignee",
);

await expect(rows.nth(4).locator("dt").nth(0)).toHaveText("Police unit");
await expect(rows.nth(4).locator("dd").nth(0)).toHaveText(
values.policeUnit,
);
const policeUnitChangeLink = rows
.nth(4)
.locator("dd")
.nth(1)
.getByRole("link", { name: "Change" });
await expect(policeUnitChangeLink).toHaveAttribute(
"href",
"/case-registration/case-assignee",
);
await expect(rows).toHaveCount(4);
}
}

Expand Down Expand Up @@ -594,9 +582,6 @@ export class CaseRegistrationSummaryPage {
async changeShoulderNumberLinkClick() {
await this.page.getByTestId("change-shoulder-number-link").click();
}
async changePoliceUnitLinkClick() {
await this.page.getByTestId("change-police-unit-link").click();
}
async changePoliceOfficerOrInvestigatorLinkClick() {
await this.page
.getByTestId("change-police-officer-or-investigator-link")
Expand Down
Loading
Loading