feat(git): clarify dashboard release flow

This commit is contained in:
2026-07-13 12:55:24 +03:00
parent 00d2619c86
commit c2bd6cb441
34 changed files with 1439 additions and 309 deletions

View File

@@ -89,6 +89,19 @@ test.describe('Git Integration', () => {
});
test.describe('Git dashboard recovery browser states', () => {
test('release screen separates a validated publication from unsaved dashboard edits', async ({ authPage }) => {
await authPage.goto(`${FRONTEND_URL}/git`);
const dashboardRow = authPage.locator('tr').filter({ hasText: "World Bank's Data" }).first();
await expect(dashboardRow).toBeVisible();
await dashboardRow.getByRole('button', { name: /Управление Git|Manage Git/ }).click();
const dialog = authPage.getByRole('dialog', { name: /Управление Git|Git management/ });
await expect(dialog.getByText(/Проверенная версия для пользователей|Validated version for users/)).toBeVisible();
await expect(dialog.getByRole('button', { name: /Опубликовать проверенную версию|Publish validated version/ })).toBeVisible();
await expect(dialog.getByText(/Есть несохранённые изменения|There are unsaved changes/)).toBeVisible();
await expect(dialog.getByText(/в публикацию не войдут|will not be included in the current publication/)).toBeVisible();
});
test('checkout conflict state exposes scoped recovery actions', async ({ page }) => {
await page.setContent(`
<section role="alert" aria-label="checkout conflict">