speedtest/tests/e2e/classic-standalone-regression.spec.js
sstidl 49f54a5c3c
add e2e testing (#777)
* docs(test): add playwright modes test plan

* test(e2e): add playwright phase-1 mode coverage

* test(e2e): add classic standalone no-server regression

* ci(docker): gate image build on playwright e2e

* ci(e2e): run on master push and allow manual dispatch

---------

Co-authored-by: Stefan Stidl <stefan.stidl@ffg.at>
2026-04-12 14:59:54 +02:00

16 lines
797 B
JavaScript

const { test, expect } = require('@playwright/test');
const { baseUrls } = require('./helpers/env');
const { classicStartButton } = require('./helpers/ui');
test.describe('Classic standalone regression coverage', () => {
test('standalone classic does not get stuck on "No servers available"', async ({ page }) => {
await page.goto(`${baseUrls.standalone}/index-classic.html`);
// In standalone mode, classic UI should show the test wrapper directly.
await expect(page.locator('#testWrapper')).toHaveClass(/visible/, { timeout: 10_000 });
await expect(page.locator('#loading')).toHaveClass(/hidden/, { timeout: 10_000 });
await expect(page.locator('#message')).not.toContainText(/No servers available/i);
await expect(classicStartButton(page)).toBeVisible();
});
});