feat(ui): ship contextual action primitives
This commit is contained in:
@@ -299,10 +299,10 @@ test('watchlist shell supports entries, alerts, and tuning in one routed page',
|
||||
await page.goto('/setup/trust-signing/watchlist/entries', { waitUntil: 'networkidle' });
|
||||
|
||||
await expect(page.getByTestId('watchlist-page')).toBeVisible();
|
||||
await expect(page.getByRole('button', { name: 'Entries' })).toHaveClass(/active/);
|
||||
await expect(page.getByTestId('watchlist-tab-entries')).toHaveClass(/active/);
|
||||
await expect(page.getByTestId('create-entry-btn')).toBeVisible();
|
||||
|
||||
await page.getByRole('button', { name: 'Alerts' }).click();
|
||||
await page.getByTestId('watchlist-tab-alerts').click();
|
||||
await expect(page).toHaveURL(/\/setup\/trust-signing\/watchlist\/alerts/);
|
||||
await expect(page.getByTestId('alerts-window-select')).toHaveValue('24h');
|
||||
await page.getByRole('button', { name: 'View' }).first().click();
|
||||
@@ -311,7 +311,7 @@ test('watchlist shell supports entries, alerts, and tuning in one routed page',
|
||||
await expect(page).toHaveURL(/\/setup\/trust-signing\/watchlist\/entries/);
|
||||
await expect(page.getByTestId('entry-form')).toBeVisible();
|
||||
|
||||
await page.getByRole('button', { name: 'Tuning' }).click();
|
||||
await page.getByTestId('watchlist-tab-tuning').click();
|
||||
await expect(page).toHaveURL(/\/setup\/trust-signing\/watchlist\/tuning/);
|
||||
await expect(page.getByTestId('tuning-form')).toBeVisible();
|
||||
});
|
||||
|
||||
@@ -310,7 +310,7 @@ test('run workspace supports timeline drill-in and evidence replay handoff', asy
|
||||
await page.goto('/releases/runs/run-e2e/graph?step=gate', { waitUntil: 'domcontentloaded' });
|
||||
|
||||
await expect(page.getByTestId('run-graph-replay-page')).toBeVisible();
|
||||
await expect(page.getByTestId('run-workspace-tab-graph')).toHaveClass(/run-tab--active/);
|
||||
await expect(page.getByTestId('run-workspace-tab-graph')).toHaveClass(/active/);
|
||||
await expect(page.getByRole('button', { name: 'Critical path only' })).toBeVisible();
|
||||
|
||||
await page.getByTestId('run-workspace-tab-timeline').click();
|
||||
@@ -330,12 +330,12 @@ test('run workspace supports timeline drill-in and evidence replay handoff', asy
|
||||
|
||||
await page.getByRole('button', { name: 'Open run replay workspace' }).click();
|
||||
await expect(page).toHaveURL(/\/releases\/runs\/run-e2e\/replay\?.*releaseId=rel-e2e.*returnTo=/);
|
||||
await expect(page.getByText('Opened from another operator flow.')).toBeVisible();
|
||||
await expect(page.getByRole('button', { name: 'Return to previous context' })).toBeVisible();
|
||||
});
|
||||
|
||||
test('legacy workflow visualization aliases redirect into the canonical run shell', async ({ page }) => {
|
||||
await page.goto('/workflow-visualization/run-e2e/graph?step=evidence', { waitUntil: 'domcontentloaded' });
|
||||
|
||||
await expect(page).toHaveURL(/\/releases\/runs\/run-e2e\/graph\?.*step=evidence/);
|
||||
await expect(page.getByTestId('run-workspace-tab-graph')).toHaveClass(/run-tab--active/);
|
||||
await expect(page.getByTestId('run-workspace-tab-graph')).toHaveClass(/active/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user