mirror of
https://github.com/getpaseo/paseo.git
synced 2026-08-14 12:23:16 +00:00
20 lines
715 B
TypeScript
20 lines
715 B
TypeScript
import { test, expect } from './fixtures';
|
|
import { gotoAppShell, openSettings } from './helpers/app';
|
|
|
|
test('daemon is connected in settings', async ({ page }) => {
|
|
const daemonPort = process.env.E2E_DAEMON_PORT;
|
|
const serverId = process.env.E2E_SERVER_ID;
|
|
if (!daemonPort) {
|
|
throw new Error('E2E_DAEMON_PORT is not set (expected from globalSetup).');
|
|
}
|
|
if (!serverId) {
|
|
throw new Error('E2E_SERVER_ID is not set (expected from globalSetup).');
|
|
}
|
|
|
|
await gotoAppShell(page);
|
|
await openSettings(page);
|
|
|
|
await expect(page.getByText(`127.0.0.1:${daemonPort}`)).toBeVisible();
|
|
await expect(page.getByTestId(`daemon-card-${serverId}`).getByText('Online', { exact: true })).toBeVisible();
|
|
});
|