Remove deprecated legacy interval field from setup and settings UI
This commit is contained in:
@@ -75,7 +75,6 @@ test.describe('Settings Modal - Configuration Sections', () => {
|
||||
test('should display scheduler configuration section', async ({ page }) => {
|
||||
await expect(page.locator('text=Scheduled Operations')).toBeVisible();
|
||||
await expect(page.locator('#scheduled-rescan-enabled')).toBeVisible();
|
||||
await expect(page.locator('#scheduled-rescan-interval')).toBeVisible();
|
||||
});
|
||||
|
||||
test('should display NFO settings section', async ({ page }) => {
|
||||
@@ -177,29 +176,6 @@ test.describe('Settings Modal - Edit Configuration', () => {
|
||||
expect(newState).not.toBe(initialState);
|
||||
});
|
||||
|
||||
test('should allow editing scheduler interval', async ({ page }) => {
|
||||
const intervalInput = page.locator('#scheduled-rescan-interval');
|
||||
|
||||
await intervalInput.clear();
|
||||
await intervalInput.fill('120');
|
||||
|
||||
const value = await intervalInput.inputValue();
|
||||
expect(value).toBe('120');
|
||||
});
|
||||
|
||||
test('should validate scheduler interval is positive', async ({ page }) => {
|
||||
const intervalInput = page.locator('#scheduled-rescan-interval');
|
||||
|
||||
await intervalInput.clear();
|
||||
await intervalInput.fill('0');
|
||||
|
||||
// HTML5 validation should prevent this
|
||||
const validationMessage = await intervalInput.evaluate(
|
||||
(el: HTMLInputElement) => el.validationMessage
|
||||
);
|
||||
expect(validationMessage).toBeTruthy();
|
||||
});
|
||||
|
||||
test('should series count field be readonly', async ({ page }) => {
|
||||
const seriesCount = page.locator('#series-count-input');
|
||||
|
||||
|
||||
@@ -108,16 +108,6 @@ test.describe('Setup Page - Form Validation', () => {
|
||||
expect(validationMessage).toBeTruthy();
|
||||
});
|
||||
|
||||
test('should validate scheduler interval is positive', async ({ page }) => {
|
||||
const intervalInput = page.locator('#scheduler_interval_minutes');
|
||||
|
||||
await intervalInput.fill('0');
|
||||
|
||||
const validationMessage = await intervalInput.evaluate(
|
||||
(el: HTMLInputElement) => el.validationMessage
|
||||
);
|
||||
expect(validationMessage).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
test.describe('Setup Page - Password Strength Indicator', () => {
|
||||
@@ -239,14 +229,11 @@ test.describe('Setup Page - Configuration Sections', () => {
|
||||
|
||||
test('should have scheduler settings with checkbox', async ({ page }) => {
|
||||
const enabledCheckbox = page.locator('#scheduler_enabled');
|
||||
const intervalInput = page.locator('#scheduler_interval_minutes');
|
||||
|
||||
await expect(enabledCheckbox).toBeVisible();
|
||||
await expect(intervalInput).toBeVisible();
|
||||
|
||||
// Should be enabled by default
|
||||
await expect(enabledCheckbox).toBeChecked();
|
||||
await expect(intervalInput).toHaveValue('60');
|
||||
});
|
||||
|
||||
test('should allow toggling scheduler enabled', async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user