add offline support
Sonarqube Scanner / Prepare environment (push) Successful in 14s
Sonarqube Scanner / Build and test (push) Successful in 22s
Sonarqube Scanner / SonarQube analysis (push) Failing after 1m14s
Sonarqube Scanner / Deploy to Server (push) Successful in 11s

This commit is contained in:
Florian Zumpe
2026-09-30 23:27:42 +02:00
parent 6913024af1
commit 8f4664282b
16 changed files with 1134 additions and 4 deletions
+11
View File
@@ -146,6 +146,17 @@ test('the npm-started local API is exercised through a write-auth proxy on loopb
assert.match(indexResponse.headers.get('cache-control') || '', /no-store/);
assert.match(indexHtml, /css\/app\.css\?v=0\.12\.14/);
const { response: manifestResponse, body: manifest } = await requestJson(`${baseUrl}/api/offline-manifest`);
assert.match(manifestResponse.headers.get('cache-control') || '', /no-store/);
assert.ok(manifest.resources.includes('/offline-worker.js'));
assert.ok(manifest.resources.includes('/js/offline-storage.js'));
assert.ok(manifest.resources.includes('/js/offline-cache.js'));
assert.ok(manifest.resources.includes('/vendor/jquery/jquery-4.0.0.min.js'));
const workerResponse = await fetch(`${baseUrl}/offline-worker.js`);
assert.equal(workerResponse.status, 200);
assert.match(workerResponse.headers.get('content-type') || '', /javascript/);
await workerResponse.arrayBuffer();
const appStyleResponse = await fetch(`${baseUrl}/css/app.css?v=0.12.14`);
assert.equal(appStyleResponse.status, 200);
assert.match(appStyleResponse.headers.get('cache-control') || '', /no-store/);