@ministryofjustice/hmpps-probation-integration-e2e-tests 1.125.0 → 1.126.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-probation-integration-e2e-tests",
3
3
  "description": "Playwright end to end tests for hmpps-probation-integration-services.",
4
- "version": "1.125.0",
4
+ "version": "1.126.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/ministryofjustice/hmpps-probation-integration-e2e-tests#readme",
7
7
  "bugs": {
@@ -13,6 +13,14 @@ const deleteAddresses = async (page, crn) => {
13
13
  await page.locator("input", { hasText: "Confirm" }).click();
14
14
  await expect(page.locator("h1")).toContainText("Addresses and Accommodation");
15
15
  }
16
+ await page.getByRole("button", { name: "Address History" }).click();
17
+ await expect(page.locator("h1")).toContainText("Address History");
18
+ while (await page.locator("#addressHistoryTable tbody tr").count() > 1) {
19
+ await page.locator("#addressHistoryTable tbody tr").first().locator("a[title=\"Link to Delete this Address\"]").click();
20
+ await expect(page.locator("h1")).toContainText("Delete Address");
21
+ await page.locator("input", { hasText: "Confirm" }).click();
22
+ await expect(page.locator("h1")).toContainText("Address History");
23
+ }
16
24
  };
17
25
 
18
26
  //#endregion