test(app): add E2E tests and improve form state with test coverage
This commit is contained in:
@@ -2,10 +2,12 @@ import { test, expect } from './fixtures';
|
||||
import { gotoHome, openSettings } from './helpers/app';
|
||||
|
||||
test('daemon is connected in settings', async ({ page }) => {
|
||||
const daemonPort = process.env.E2E_DAEMON_PORT ?? '6767';
|
||||
|
||||
await gotoHome(page);
|
||||
await openSettings(page);
|
||||
|
||||
await expect(page.getByText('localhost', { exact: true })).toBeVisible();
|
||||
await expect(page.getByText('ws://localhost:6767/ws')).toBeVisible();
|
||||
await expect(page.getByText(`ws://localhost:${daemonPort}/ws`)).toBeVisible();
|
||||
await expect(page.getByText('Online', { exact: true })).toBeVisible();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user