Skip to content

Commit cf1ef3a

Browse files
Remove outdated e2e-tests
RISDEV-0000
1 parent 3876b3d commit cf1ef3a

File tree

3 files changed

+3
-86
lines changed

3 files changed

+3
-86
lines changed

frontend/e2e/amending-laws-article-editor-common.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ test.describe("Navigation", () => {
4848
)
4949

5050
await expect(
51-
page.getByRole("textbox", {
52-
name: "Neuer Text Inhalt",
51+
page.getByRole("combobox", {
52+
name: "Zeitgrenze",
5353
}),
54-
).toHaveValue("1. Beispiel")
54+
).toHaveText("01.02.1001")
5555
})
5656
})
5757

frontend/e2e/amending-laws-article-editor-quoted-structure.spec.ts

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,6 @@ test.describe("Load mod details", () => {
3333
})
3434
await expect(modFormSection).toBeVisible()
3535

36-
// Textual Mode Type
37-
const textualModeTypeElement = modFormSection.getByRole("textbox", {
38-
name: "Änderungstyp",
39-
})
40-
await expect(textualModeTypeElement).toBeVisible()
41-
await expect(textualModeTypeElement).toHaveValue("Ersetzen")
42-
await expect(textualModeTypeElement).toHaveAttribute("readonly", "")
43-
4436
// Time Boundaries
4537
const timeBoundariesElement = modFormSection.getByRole("combobox", {
4638
name: "Zeitgrenze",
@@ -52,33 +44,6 @@ test.describe("Load mod details", () => {
5244

5345
const timeBoundaryOptionElements = sharedPage.getByRole("option")
5446
await expect(timeBoundaryOptionElements).toHaveCount(3)
55-
56-
// // Destination Href Eli
57-
const destinationHrefEliElement = modFormSection.getByRole("textbox", {
58-
name: "ELI Zielgesetz",
59-
})
60-
await expect(destinationHrefEliElement).toBeVisible()
61-
await expect(destinationHrefEliElement).toHaveValue(
62-
"eli/bund/bgbl-1/1002/1/1002-01-01/1/deu/regelungstext-1",
63-
)
64-
await expect(destinationHrefEliElement).toHaveAttribute("readonly", "")
65-
66-
const elementToBeReplacedField = sharedPage.getByTestId(
67-
"elementToBeReplaced",
68-
)
69-
70-
const selectedElementLocator = elementToBeReplacedField.getByRole(
71-
"button",
72-
{ name: "long title", exact: true },
73-
)
74-
75-
await expect(selectedElementLocator).toBeInViewport()
76-
77-
await expect(selectedElementLocator).toHaveClass(/selected/)
78-
79-
await expect(sharedPage.getByTestId("replacingElement")).toHaveText(
80-
"Fiktives Beispielgesetz für das Ersetzen von Strukturen und Gliederungseinheiten mit Änderungsbefehlen (Strukturänderungsgesetz)",
81-
)
8247
})
8348
})
8449

frontend/e2e/amending-laws-article-editor-quoted-text.spec.ts

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -11,54 +11,6 @@ test.describe("Editing a single mod", () => {
1111
test.afterEach(async ({ authenticatedRequest: request }) => {
1212
await uploadAmendingLaw(request, "bgbl-1_2017_s419/aenderungsgesetz.xml")
1313
})
14-
15-
test(
16-
"editing and saving the eid mod change by highlighting",
17-
{ tag: ["@RISDEV-4553"] },
18-
async ({ page }) => {
19-
const amendingLawSection = page.getByRole("region", {
20-
name: "Änderungsbefehle",
21-
})
22-
23-
await amendingLawSection.getByText("§ 20 Absatz 1 Satz 2").click()
24-
25-
const modFormSection = page.getByRole("region", {
26-
name: "Änderungsbefehl bearbeiten",
27-
})
28-
29-
await expect(
30-
modFormSection.getByRole("textbox", {
31-
name: "zu ersetzende Textstelle",
32-
}),
33-
).toHaveValue(
34-
"hauptteil-1_art-1_abs-1_untergl-1_listenelem-2_inhalt-1_text-1/9-34.xml",
35-
)
36-
37-
const textBoundingBox = await modFormSection
38-
.getByLabel("Zu ersetzender Text")
39-
.getByText("entgegen § 9")
40-
.boundingBox()
41-
42-
await page.mouse.dblclick(textBoundingBox!.x + 50, textBoundingBox!.y + 5)
43-
await page.mouse.click(0, 0)
44-
45-
await expect(
46-
modFormSection.getByRole("textbox", {
47-
name: "zu ersetzende Textstelle",
48-
}),
49-
).not.toHaveValue(
50-
"hauptteil-1_art-1_abs-1_untergl-1_listenelem-2_inhalt-1_text-1/9-34.xml",
51-
)
52-
53-
await expect(
54-
modFormSection.getByRole("textbox", {
55-
name: "zu ersetzende Textstelle",
56-
}),
57-
).toHaveValue(
58-
"hauptteil-1_art-1_abs-1_untergl-1_listenelem-2_inhalt-1_text-1/0-8.xml",
59-
)
60-
},
61-
)
6214
})
6315

6416
test.describe("Editing multiple mods", () => {

0 commit comments

Comments
 (0)