Test: In KÜ RSL: Zahl mit 3 Nachkommastellen

This commit is contained in:
ISA
2025-09-01 14:33:31 +02:00
parent 57baca292a
commit 174d67cfd8
6 changed files with 18 additions and 18 deletions

View File

@@ -104,7 +104,10 @@ export async function runCableMonitoringTest(page: Page) {
);
await page.waitForTimeout(400);
await highlightAndExpectVisible(page, page.getByText("RSL: 0 kOhm").first());
await highlightAndExpectVisible(
page,
page.getByText(/^RSL: \d+,\d{3} kOhm$/).first()
);
await page.waitForTimeout(400);
await highlightAndExpectVisible(page, page.getByText("Kabel 1"));
@@ -204,23 +207,15 @@ export async function runCableMonitoringTest(page: Page) {
);
await page.waitForTimeout(400);
await highlightAndExpectVisible(page, page.getByText("RSL: 0 kOhm").nth(3));
await highlightAndExpectVisible(
page,
page.getByText(/^RSL: \d+,\d{3} kOhm$/).nth(3)
);
await page.waitForTimeout(400);
await highlightAndExpectVisible(page, page.getByText("Kabel 8"));
await page.waitForTimeout(400);
await highlightAndExpectVisible(
page,
page
.getByRole("main")
.locator("div")
.filter({
hasText:
"8KÜ705-FO⚙BetriebAlarmIsolationsfehler ISO: 10 MOhmRSL: 0 kOhmKabel 8V4.",
})
.nth(2)
);
await page.waitForTimeout(400);
await highlightAndExpectVisible(