GPS Geschwindigkeitsanzeige
Test and publish container images / test (push) Successful in 2m25s
Test and publish container images / publish (push) Failing after 4s

This commit is contained in:
BuTzZ
2026-07-28 16:39:35 +02:00
parent 593dbd5f85
commit 2e84f4eae4
5 changed files with 70 additions and 45 deletions
+5 -2
View File
@@ -18,7 +18,7 @@ const idleGps: GpsState = {
};
describe("StatusBar", () => {
it("shows only three planning values without claiming that a route is safe", () => {
it("always includes GPS speed in planning mode without claiming that a route is safe", () => {
const forecast = {
windSpeed: 12,
waveHeightM: 0.8
@@ -34,8 +34,9 @@ describe("StatusBar", () => {
/>
);
expect(container.querySelectorAll(".status-item")).toHaveLength(3);
expect(container.querySelectorAll(".status-item")).toHaveLength(4);
expect(screen.getByText("12 kn · 0.8 m")).toBeVisible();
expect(screen.getByText("-- km/h · -- kn")).toBeVisible();
expect(screen.queryByText("Route OK")).not.toBeInTheDocument();
});
@@ -60,6 +61,7 @@ describe("StatusBar", () => {
expect(screen.getByText("087°T")).toBeVisible();
expect(screen.getByText("24 m Stb")).toBeVisible();
expect(screen.getByText("2 offen")).toBeVisible();
expect(screen.getByText("11,5 km/h · 6,2 kn")).toBeVisible();
});
it("shows anchor drift, GPS and the expected tide rise in anchor mode", () => {
@@ -82,5 +84,6 @@ describe("StatusBar", () => {
expect(screen.getByText("12 / 40 m")).toBeVisible();
expect(screen.getByText("±5 m")).toBeVisible();
expect(screen.getByText("+1.3 m")).toBeVisible();
expect(screen.getByText("-- km/h · -- kn")).toBeVisible();
});
});