summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-12 16:15:20 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:16 -0300
commit973100a138daea5087f43db656b8688b24d9da88 (patch)
treeef0297bd09c66a3dc72872b338b5fba5e4cb3b37 /test
parent48281b473571d93d5a35d2250213902d1411de40 (diff)
downloadcloud9-973100a138daea5087f43db656b8688b24d9da88.tar.gz
cloud9-973100a138daea5087f43db656b8688b24d9da88.zip
9web: correct application branding
Use 9web in the shared header, footer and dynamic page titles. Retain internal URLs for compatibility. Add browser assertions and document the unresolved catalogue/upstream composition limitation. Verified ReleaseSafe build and catalog-ui-test; deployed to the user service.
Diffstat (limited to 'test')
-rw-r--r--test/web/catalog_ui.mjs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/web/catalog_ui.mjs b/test/web/catalog_ui.mjs
index d030842..6120a51 100644
--- a/test/web/catalog_ui.mjs
+++ b/test/web/catalog_ui.mjs
@@ -69,9 +69,13 @@ try {
await cdp('Page.navigate', { url });
await wait(() => evaluate(`document.getElementById('status')?.textContent.includes('entries')`), 'files loaded');
assert.equal(await evaluate(`document.querySelectorAll('header').length`), 1);
+ assert.equal(await evaluate(`document.querySelector('.brand').textContent`), '9web');
+ assert.equal(await evaluate(`document.querySelector('footer').textContent`), 'served by 9web');
+ assert.equal(await evaluate(`document.title`), '/ — 9web');
assert.equal(await evaluate(`getComputedStyle(document.documentElement).backgroundColor`), 'rgb(255, 255, 255)');
assert.equal(await evaluate(`document.getElementById('view-files').getAttribute('aria-current')`), 'page');
await view('sites'); await readySites();
+ assert.equal(await evaluate(`document.title`), 'sites — 9web');
assert.equal(await evaluate(`document.querySelector('#sites-entries .site-name').href`), `http://127.0.0.1:${sitePort}/`);
assert.equal(await evaluate(`document.querySelectorAll('link[rel=stylesheet]').length`), 1);
assert.equal(await evaluate(`document.querySelector('link[rel=stylesheet]').getAttribute('href')`), '/_cloud9/style.css');