mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
* Update files * Git panel: share checkout actions Hoist checkout-scoped async git actions into a shared store and keep primary Push CTA loading in-place. Also stabilize e2e git flows. * Stabilize git panel async actions and fix e2e flakes
20 lines
707 B
TypeScript
20 lines
707 B
TypeScript
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;
|
|
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 gotoHome(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();
|
|
});
|