Your House.
Your destiny.
Explore worlds. Build alliances.
Write a story worth telling.
From c9904947ed06a069b15b01cd1815558b84be84e8 Mon Sep 17 00:00:00 2001 From: unimatrixgit <95320811+unimatrixgit@users.noreply.github.com> Date: Sat, 28 Nov 2026 19:33:25 +0100 Subject: [PATCH] Avoid duplicate Equipment and kits link in the shared menu --- website/tests/menu-badges.test.mjs | 10 ++++++++++ website/web/index.html | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/website/tests/menu-badges.test.mjs b/website/tests/menu-badges.test.mjs index db8e78d3..6a41f1c0 100644 --- a/website/tests/menu-badges.test.mjs +++ b/website/tests/menu-badges.test.mjs @@ -1,6 +1,8 @@ import test from 'node:test'; import assert from 'node:assert/strict'; import {Script} from 'node:vm'; +import {readFileSync} from 'node:fs'; +import {MAIN_MENU_GROUPS} from '../scripts/main-menu.mjs'; import {RELEASE,RELEASE_SCRIPT,updateReleaseBadge} from '../scripts/release-branding.mjs'; import {sharedHomepageHeaderScript} from '../scripts/homepage-header.mjs'; import {LocalD1} from './d1-adapter.mjs'; @@ -50,3 +52,11 @@ test('both header scripts use a validated stage and four-part release version',a await updateReleaseBadge(badge,api,RELEASE,async()=>Response.json({stage:'alpha',releaseVersion:'1.0.1',version:'1.0.1'})); assert.equal(badge.textContent,'Beta 1.0.1.0'); }); + +test('homepage Trade fallback and shared menu point Equipment and kits to the same route',()=>{ + const homepage=readFileSync(new URL('../web/index.html',import.meta.url),'utf8'); + const kitLinks=[...homepage.matchAll(/Equipment & kits<\/a>/g)]; + const entry=MAIN_MENU_GROUPS.Trade.find(([label])=>label==='Equipment & kits'); + assert.equal(kitLinks.length,1); + assert.equal(kitLinks[0][1],entry[1]); +}); diff --git a/website/web/index.html b/website/web/index.html index 2c3d4da1..ee000fa3 100644 --- a/website/web/index.html +++ b/website/web/index.html @@ -5,7 +5,7 @@ Skip to content

Explore worlds. Build alliances.
Write a story worth telling.