remove obsolete elements and cleanup gui
Sonarqube Scanner / Prepare environment (push) Successful in 9s
Sonarqube Scanner / Build and test (push) Successful in 31s
Sonarqube Scanner / SonarQube analysis (push) Successful in 1m22s
Sonarqube Scanner / Deploy to Server (push) Successful in 8s

This commit is contained in:
Florian Zumpe
2026-10-02 10:39:21 +02:00
parent a3ee08ad4d
commit bbb1834709
9 changed files with 101 additions and 118 deletions
+3 -9
View File
@@ -322,7 +322,6 @@ async function loadApp({ language = 'de-DE' } = {}) {
test('English browser settings localize app controls and retain user-authored trail names', async () => {
const { context, harness } = await loadApp({ language: 'en-GB' });
await context.Wegwichtel.App.initialize({ markStep() {} });
assert.equal(harness.node('#route-control-title').textValue, 'Choose a trail');
assert.equal(harness.node('#route-control-server-title').textValue, 'Public trails (1)');
assert.equal(harness.node('#route-control-local-title').textValue, 'My drafts (1)');
assert.match(harness.node('#location-hint').textValue, /You can still choose from all trails/);
@@ -360,8 +359,7 @@ test('route control runtime loads server/local routes and supports switching wit
localButton.dataValues.set('route-id', 'local-1');
await harness.activate('[data-route-select]', localButton);
assert.equal(harness.node('#route-control-title').textValue, 'Lokaler Weg');
assert.match(harness.node('#route-control-next').textValue, /Nächste Station: Lokaler Weg Start/);
assert.equal(harness.node('#route-title').textValue, 'Lokaler Weg');
assert.equal(harness.node('#route-page').attributes.has('hidden'), false);
const serverButton = new FakeNode('server-select');
@@ -370,8 +368,7 @@ test('route control runtime loads server/local routes and supports switching wit
await harness.key('[data-route-select]', serverButton, 'Enter');
assert.ok(apiCalls.includes('route:server-1'));
assert.equal(harness.node('#route-control-title').textValue, 'Serverweg');
assert.match(harness.node('#route-control-next').textValue, /Nächste Station: Serverweg Start/);
assert.equal(harness.node('#route-title').textValue, 'Serverweg');
});
test('local-route change refreshes an active draft and handles its later removal', async () => {
@@ -391,7 +388,7 @@ test('local-route change refreshes an active draft and handles its later removal
harness.document.dispatchEvent(updateEvent);
await tick();
assert.equal(harness.node('#route-control-title').textValue, 'Lokaler Weg geändert');
assert.equal(harness.node('#route-title').textValue, 'Lokaler Weg geändert');
assert.equal(editor.refreshed, 1);
setup.setLocalRoute(null);
@@ -400,7 +397,6 @@ test('local-route change refreshes an active draft and handles its later removal
harness.document.dispatchEvent(removeEvent);
await tick();
assert.equal(harness.node('#route-control-title').textValue, 'Strecke wählen');
assert.equal(harness.node('#routes-page').attributes.has('hidden'), false);
assert.equal(editor.refreshed, 2);
});
@@ -466,11 +462,9 @@ test('tracking triggers each POI once, records media progress and pauses/resumes
await harness.activate('#start-route', new FakeNode('resume'));
calls.position({ lat: 50.001, lon: 10.001, accuracy: 5 });
assert.equal(calls.vibrations, 2);
assert.equal(harness.node('#route-control-next').textValue, 'Alle Stationen erreicht');
assert.equal(harness.node('#navigation-distance').textValue, '0 m');
await harness.activate('#stop-route', new FakeNode('stop'));
assert.equal(savedStates.at(-1)[1], 'idle');
assert.equal(harness.node('#route-control-title').textValue, 'Strecke wählen');
assert.equal(harness.node('#navigation-footer').properties.get('hidden'), true);
assert.ok(calls.stopped >= 4);
});