mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-30 12:09:15 +00:00
fix(e2e): fix stacks timeout and nodes skip in CI
stacks.spec.ts: - waitForStacksLoaded: wait for 'Create Stack' button instead of [cmdk-item] > 0 CI starts with empty COMPOSE_DIR so there are no stacks; the button is always rendered in the sidebar regardless of whether any stacks exist nodes.spec.ts: - beforeEach: click Settings then 'Nodes' nav item to reach NodeManager The Add Node button lives inside Settings → Nodes; the previous beforeEach only clicked Settings but never navigated to the Nodes section, so the add-node button was never found and tests silently skipped
This commit is contained in:
+4
-3
@@ -8,9 +8,10 @@ import { loginAs } from './helpers';
|
||||
test.describe('Node management', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await loginAs(page);
|
||||
// Navigate to the nodes section (Settings / Node Manager)
|
||||
const nodesBtn = page.getByRole('button', { name: /nodes|manage nodes|settings/i }).first();
|
||||
if (await nodesBtn.isVisible()) await nodesBtn.click();
|
||||
// Open Settings modal
|
||||
await page.getByRole('button', { name: /settings/i }).click();
|
||||
// Navigate to the Nodes section inside the modal
|
||||
await page.getByRole('button', { name: /^nodes$/i }).click();
|
||||
});
|
||||
|
||||
test('adding a node with localhost api_url shows a validation error', async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user