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.

fix(ui-tests): drop dead-field subscription tests, retarget at #subscription-strategy (#4151)

LearningCircuitca0976fec12d
diff --git a/tests/ui_tests/test_crud_operations_ci.js b/tests/ui_tests/test_crud_operations_ci.js
index 939a6c881a..0b6646752b 100644
--- a/tests/ui_tests/test_crud_operations_ci.js
+++ b/tests/ui_tests/test_crud_operations_ci.js
@@ -295,70 +295,41 @@ const SubscriptionCrudTests = {
};
},
- async subscriptionFrequencyOptions(page, baseUrl) {
- await navigateTo(page, `${baseUrl}/news/subscriptions`);
-
- await findActionButton(page, { click: true });
- await delay(500);
-
- const result = await page.evaluate(() => {
- const frequencySelect = document.querySelector(
- 'select[name*="frequency"], ' +
- '#frequency, ' +
- '.frequency-select'
- );
-
- if (!frequencySelect) return { exists: false };
-
- const options = Array.from(frequencySelect.options).map(o => o.text);
- return {
- exists: true,
- optionCount: options.length,
- options: options.slice(0, 6)
- };
- });
-
- if (!result.exists) {
- return { passed: null, skipped: true, message: 'No frequency dropdown found' };
- }
-
- return {
- passed: result.optionCount > 0,
- message: `Frequency options: ${result.options.join(', ')}`
- };
- },
-
- async subscriptionTypeOptions(page, baseUrl) {
- await navigateTo(page, `${baseUrl}/news/subscriptions`);
+ async subscriptionStrategyOptions(page, baseUrl) {
+ // The original test (subscriptionTypeOptions) looked for a generic
+ // "type" / "category" dropdown that does not exist on the real
+ // /news/subscriptions/new form. The closest equivalent is the
+ // research-strategy <select id="subscription-strategy">, which is
+ // a real dropdown with multiple options. Re-target the assertion
+ // there so it exercises a real contract instead of silently
+ // SKIPping.
+ //
+ // The sibling subscriptionFrequencyOptions test was removed at the
+ // same time — the form has no scheduling / frequency input at all
+ // (only iteration / question counts), so there was nothing for it
+ // to point at.
- await findActionButton(page, { click: true });
- await delay(500);
+ await navigateTo(page, `${baseUrl}/news/subscriptions/new`);
const result = await page.evaluate(() => {
- const typeSelect = document.querySelector(
- 'select[name*="type"], ' +
- '#type, ' +
- '.type-select, ' +
- 'select[name*="category"]'
- );
-
- if (!typeSelect) return { exists: false };
-
- const options = Array.from(typeSelect.options).map(o => o.text);
+ const sel = document.querySelector('#subscription-strategy');
+ if (!sel) return { exists: false };
+ const options = Array.from(sel.options).map(o => o.text);
return {
exists: true,
optionCount: options.length,
- options: options.slice(0, 6)
+ options: options.slice(0, 6),
};
});
if (!result.exists) {
- return { passed: null, skipped: true, message: 'No type dropdown found' };
+ return { passed: false, message: '#subscription-strategy select missing on /news/subscriptions/new' };
}
-
return {
passed: result.optionCount > 0,
- message: `Type options: ${result.options.join(', ')}`
+ message: result.optionCount > 0
+ ? `Strategy options (${result.optionCount}): ${result.options.join(', ')}`
+ : 'Strategy select is empty'
};
},
@@ -773,8 +744,7 @@ async function main() {
log.section('Subscription CRUD');
await run('Subscriptions', 'Create Subscription Form Opens', (p, u) => SubscriptionCrudTests.createSubscriptionFormOpens(p, u));
await run('Subscriptions', 'Subscription Form Validation', (p, u) => SubscriptionCrudTests.subscriptionFormValidation(p, u));
- await run('Subscriptions', 'Subscription Frequency Options', (p, u) => SubscriptionCrudTests.subscriptionFrequencyOptions(p, u));
- await run('Subscriptions', 'Subscription Type Options', (p, u) => SubscriptionCrudTests.subscriptionTypeOptions(p, u));
+ await run('Subscriptions', 'Subscription Strategy Options', (p, u) => SubscriptionCrudTests.subscriptionStrategyOptions(p, u));
await run('Subscriptions', 'Subscription Toggle Status', (p, u) => SubscriptionCrudTests.subscriptionToggleStatus(p, u));
await run('Subscriptions', 'Subscription Delete Confirmation', (p, u) => SubscriptionCrudTests.subscriptionDeleteConfirmation(p, u));