diff --git a/e2e/integration.spec.js b/e2e/integration.spec.js index c37e47d..fc7e688 100644 --- a/e2e/integration.spec.js +++ b/e2e/integration.spec.js @@ -128,6 +128,7 @@ test('full manual mode patching pipeline', async ({ page }) => { } await expect(page.locator('#build-status')).toContainText('Patching complete'); + await expect(page.locator('#build-status')).toContainText('Kobo Libra Colour'); // Step 8: Download KoboRoot.tgz and verify checksums. const [download] = await Promise.all([ @@ -136,6 +137,8 @@ test('full manual mode patching pipeline', async ({ page }) => { ]); expect(download.suggestedFilename()).toBe('KoboRoot.tgz'); + await expect(page.locator('#download-device-name')).toHaveText('Kobo Libra Colour'); + const downloadPath = await download.path(); const tgzData = fs.readFileSync(downloadPath); diff --git a/web/public/app.js b/web/public/app.js index a149a44..a0d8bfb 100644 --- a/web/public/app.js +++ b/web/public/app.js @@ -405,7 +405,7 @@ action + '. KoboRoot.tgz (' + sizeTxt + ') is ready. ' + (description ? description + ' ' : '') + (manualMode - ? 'Download the file and copy it to your Kobo.' + ? 'Download the file and copy it to your ' + (KOBO_MODELS[selectedPrefix] || 'Kobo') + '.' : 'Write it directly to your connected Kobo, or download for manual installation.'); const doneLog = document.getElementById('done-log'); @@ -481,6 +481,7 @@ writeInstructions.hidden = true; downloadInstructions.hidden = false; + document.getElementById('download-device-name').textContent = KOBO_MODELS[selectedPrefix] || 'Kobo'; }); // --- Error / Retry --- diff --git a/web/public/index.html b/web/public/index.html index cde4403..f0e9691 100644 --- a/web/public/index.html +++ b/web/public/index.html @@ -163,7 +163,7 @@