test: WIP: digitalInputsTest.ts
This commit is contained in:
@@ -2,11 +2,11 @@ import { test } from "../fixtures";
|
||||
import { runDashboardTest } from "./dashboardTest";
|
||||
import { runAnalogInputsTest } from "./analogInputsTest";
|
||||
import { runSettingsPageTest } from "./settingsPageTest";
|
||||
|
||||
import "./digitalInputsTest";
|
||||
import { runDigitalInputsTest } from "./digitalInputsTest";
|
||||
|
||||
test("Dashboard, AnalogInputs und SettingsPage", async ({ page }) => {
|
||||
await runDashboardTest(page);
|
||||
await runAnalogInputsTest(page);
|
||||
await runSettingsPageTest(page);
|
||||
//await runDashboardTest(page);
|
||||
//await runAnalogInputsTest(page);
|
||||
//await runSettingsPageTest(page);
|
||||
await runDigitalInputsTest(page);
|
||||
});
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { test, expect } from "@playwright/test";
|
||||
import type { Page } from "@playwright/test";
|
||||
import { expect } from "@playwright/test";
|
||||
|
||||
test("test", async ({ page }) => {
|
||||
await page.goto("http://localhost:3000/digitalInputs");
|
||||
export async function runDigitalInputsTest(page: Page) {
|
||||
await page.goto("/digitalInputs");
|
||||
await expect(
|
||||
page.getByRole("img", { name: "Logo", exact: true })
|
||||
).toBeVisible();
|
||||
@@ -114,4 +115,4 @@ test("test", async ({ page }) => {
|
||||
page.getByRole("row", { name: "● DE 13" }).locator("span")
|
||||
).toBeVisible();
|
||||
await expect(page.getByRole("cell", { name: "DE 13" })).toBeVisible();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user