Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

chore(ui-tests): drop dead-field history CRUD tests (unseedable in CI) (#4580)

LearningCircuit41c02cd19d39
diff --git a/tests/ui_tests/test_crud_operations_ci.js b/tests/ui_tests/test_crud_operations_ci.js
index 86dcd054f9..869bb08d2f 100644
--- a/tests/ui_tests/test_crud_operations_ci.js
+++ b/tests/ui_tests/test_crud_operations_ci.js
@@ -742,72 +742,6 @@ async function uploadFixtureDocument(page, collectionId) {
}, collectionId);
}
-// ============================================================================
-// Research History CRUD Tests
-// ============================================================================
-const HistoryCrudTests = {
- async historyItemDelete(page, baseUrl) {
- await navigateTo(page, `${baseUrl}/history`);
-
- const result = await page.evaluate(() => {
- const items = document.querySelectorAll('.history-item, .research-item, tr[data-id]');
- if (items.length === 0) return { hasItems: false };
-
- const firstItem = items[0];
- const deleteBtn = firstItem.querySelector(
- 'button[class*="delete"], ' +
- '.delete-btn, ' +
- '.btn-danger'
- );
-
- return {
- hasItems: true,
- itemCount: items.length,
- hasDeleteButton: !!deleteBtn
- };
- });
-
- if (!result.hasItems) {
- return { passed: null, skipped: true, message: 'No history items to test delete' };
- }
-
- if (!result.hasDeleteButton) {
- return { passed: null, skipped: true, message: 'No delete button found on history items' };
- }
-
- return {
- passed: true,
- message: `Delete button found on ${result.itemCount} history items`
- };
- },
-
- async clearAllHistoryButton(page, baseUrl) {
- await navigateTo(page, `${baseUrl}/history`);
-
- const result = await page.evaluate(() => {
- const buttons = Array.from(document.querySelectorAll('button, a.btn'));
- const clearBtn = buttons.find(b => {
- const text = b.textContent?.toLowerCase() || '';
- return text.includes('clear') || text.includes('delete all') || text.includes('remove all');
- });
-
- return {
- hasClearButton: !!clearBtn,
- buttonText: clearBtn?.textContent?.trim()
- };
- });
-
- if (!result.hasClearButton) {
- return { passed: null, skipped: true, message: 'No clear all history button found' };
- }
-
- return {
- passed: true,
- message: `Clear history button found: "${result.buttonText}"`
- };
- }
-};
-
// ============================================================================
// Main Test Runner
// ============================================================================
@@ -858,11 +792,6 @@ async function main() {
await run('Documents', 'Document Delete Confirmation', (p, u) => DocumentCrudTests.documentDeleteConfirmation(p, u));
await run('Documents', 'Bulk Delete Selection', (p, u) => DocumentCrudTests.bulkDeleteSelection(p, u));
- // History CRUD Tests
- log.section('History CRUD');
- await run('History', 'History Item Delete', (p, u) => HistoryCrudTests.historyItemDelete(p, u));
- await run('History', 'Clear All History Button', (p, u) => HistoryCrudTests.clearAllHistoryButton(p, u));
-
} catch (error) {
log.error(`Fatal error: ${error.message}`);
console.error(error.stack);
@@ -882,4 +811,4 @@ if (require.main === module) {
});
}
-module.exports = { CollectionCrudTests, SubscriptionCrudTests, DocumentCrudTests, HistoryCrudTests };
+module.exports = { CollectionCrudTests, SubscriptionCrudTests, DocumentCrudTests };