mirror of
https://github.com/librespeed/speedtest.git
synced 2026-11-22 16:14:56 +00:00
Apply remaining changes
Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com>
This commit is contained in:
parent
91e5d71c9d
commit
3d019644ad
1 changed files with 16 additions and 0 deletions
16
tests/e2e/classic-server-list.spec.js
Normal file
16
tests/e2e/classic-server-list.spec.js
Normal file
|
|
@ -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');
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue