Skip to content

Commit

Permalink
Remove edition e2e scrolling test
Browse files Browse the repository at this point in the history
RISDEV-5539

Is covered through unit test
  • Loading branch information
Nadav-B committed Dec 3, 2024
1 parent 8018a85 commit a6dcb53
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions frontend/test/e2e/caselaw/legal-periodical-evaluation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,25 +568,6 @@ test.describe(
await expect(page.getByText("Seite 2")).toBeHidden()
await expect(page.getByText("Seite 1")).toBeVisible()
})

await test.step("Page scrolls to top on validation errors", async () => {
await navigateToPeriodicalReferences(page, edition.id)
const fileNumber = "1"

await page.getByText("Suchen").click()

const addReferenceButton = page
.getByLabel("Treffer übernehmen")
.last()
await fillInput(page, "Aktenzeichen", fileNumber)
await addReferenceButton.scrollIntoViewIfNeeded()
await addReferenceButton.last().click()

const validationErrorPlaceHolder = page
.getByText("Pflichtfeld nicht befüllt")
.first()
await expect(validationErrorPlaceHolder).toBeInViewport()
})
},
)

Expand Down

0 comments on commit a6dcb53

Please sign in to comment.