From 3d019644ad66a99e554176656c958bce136b1dfd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Oct 2026 22:28:29 +0000 Subject: [PATCH] Apply remaining changes Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> --- tests/e2e/classic-server-list.spec.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/e2e/classic-server-list.spec.js diff --git a/tests/e2e/classic-server-list.spec.js b/tests/e2e/classic-server-list.spec.js new file mode 100644 index 0000000..70c1534 --- /dev/null +++ b/tests/e2e/classic-server-list.spec.js @@ -0,0 +1,16 @@ +const { test, expect } = require('@playwright/test'); +const { baseUrls } = require('./helpers/env'); + +test.describe('Classic design with mounted server list', () => { + test('frontend classic page loads the mounted server-list.json', async ({ page, request }) => { + const html = await (await request.get(`${baseUrls.frontend}/index-classic.html`)).text(); + expect(html).toMatch(/var SPEEDTEST_SERVERS = "server-list\.json";/); + + const listRequest = page.waitForRequest((req) => req.url().endsWith('/server-list.json')); + await page.goto(`${baseUrls.frontend}/index-classic.html`); + await listRequest; + + // Not treated as a standalone install: the server selector is not hidden. + await expect(page.locator('#serverArea')).not.toHaveCSS('display', 'none'); + }); +});