fix lint
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-01-15 02:36:24 +03:00
parent dea0676169
commit 2e46cc41a1
42 changed files with 940 additions and 301 deletions

View File

@ -156,7 +156,8 @@ test.describe('Фаза 2: Цветовая маркировка', () => {
test.skip(!hasData, 'Нет данных для тестирования');
const colorTrigger = page.locator('[data-testid="color-picker-trigger"]').first();
const firstRow = page.locator('[data-testid^="idea-row-"]').first();
const colorTrigger = firstRow.locator('[data-testid="color-picker-trigger"]');
await colorTrigger.click();
const popover = page.locator('[data-testid="color-picker-popover"]');
@ -170,16 +171,17 @@ test.describe('Фаза 2: Цветовая маркировка', () => {
// Ждём закрытия popover
await expect(popover).toBeHidden({ timeout: 3000 });
// Проверяем что строка получила цветной фон
await page.waitForTimeout(300);
const firstRow = page.locator('[data-testid^="idea-row-"]').first();
const rowStyle = await firstRow.evaluate((el) => {
const bg = getComputedStyle(el).backgroundColor;
return bg;
// Проверяем что строка получила цветной фон (ждем API ответа)
await page.waitForTimeout(500);
// Проверяем что color picker trigger показывает цвет (сам trigger имеет backgroundColor)
const triggerStyle = await colorTrigger.evaluate((el) => {
return getComputedStyle(el).backgroundColor;
});
// Фон не должен быть прозрачным
expect(rowStyle).not.toBe('rgba(0, 0, 0, 0)');
// После выбора цвета, trigger должен показывать выбранный цвет (не transparent)
expect(triggerStyle).not.toBe('transparent');
expect(triggerStyle).not.toBe('rgba(0, 0, 0, 0)');
});
test('Фильтр по цвету открывает dropdown с опциями', async ({ page }) => {

View File

@ -418,10 +418,12 @@ test.describe('Фаза 3.1: Генерация мини-ТЗ', () => {
const editButton = modal.locator('[data-testid="specification-edit-button"]');
await editButton.click();
// Редактируем текст
const textarea = modal.locator('[data-testid="specification-textarea"] textarea');
// Редактируем текст (MUI TextField создает 2 textarea, берем первый видимый)
const textarea = modal.locator(
'[data-testid="specification-textarea"] textarea:not([aria-hidden="true"])',
);
const testText = '\n\n## Дополнительно\nТестовая правка ' + Date.now();
await textarea.fill(await textarea.inputValue() + testText);
await textarea.fill((await textarea.inputValue()) + testText);
// Сохраняем
const saveButton = modal.locator('[data-testid="specification-save-button"]');