RosiKyu commented on PR #11728:
URL: https://github.com/apache/cloudstack/pull/11728#issuecomment-3804991245

   ## WIP (testing)
   
   ### TC1: Reset button disabled for default values (Global Configuration)
   
   **Objective:**
   Verify that the reset configuration button is disabled (greyed out) when the 
current configuration value equals the default value.
   
   **Test Steps:**
   1. Navigated to http://10.0.34.171:8080/client/#/dashboard
   2. Logged in as admin user
   3. Navigated to Configuration → Global Settings
   4. Searched for configuration: `account.cleanup.interval`
   5. Observed the reset (reload) icon button state
   6. Attempted to click the reset button
   
   **Expected Result:** The reset button should be disabled/greyed out and 
non-interactive when the current value (86400) equals the default value (86400).
   
   **Actual Result:** The reset button is greyed out and cannot be interacted 
with. The button shows tooltip "Reset to default value" but does not respond to 
clicks.
   
   **Test Evidence:**
   - Configuration tested: `account.cleanup.interval`
   - Current value: `86400`
   - Default value: `86400`
   - Reset button state: Disabled (greyed out)
   - Comparison test: `host` configuration (value: `10.0.34.171`, default: 
`localhost`) shows reset button as enabled/clickable, confirming the 
differential behavior works correctly.
   
   <img width="2543" height="757" alt="image" 
src="https://github.com/user-attachments/assets/51ef1c95-c969-4167-8e8c-7f816ad369f4";
 />
   
   ## TC2: Reset button enabled for non-default values (Global Configuration)
   
   **Objective:**
   Verify that the reset configuration button is enabled when the current 
configuration value differs from the default value, and that after reset the 
button becomes disabled.
   
   **Test Steps:**
   1. Navigated to Configuration → Global Settings
   2. Searched for configuration: `host`
   3. Observed the reset button state (enabled, not greyed out)
   4. Clicked the reset button
   5. Confirmation dialog appeared: "Are you sure you want reset configuration 
- host?"
   6. Clicked "Yes" to confirm reset
   7. Observed the value change and reset button state after reset
   
   **Expected Result:**
   - Reset button should be enabled when value differs from default
   - Clicking reset should show confirmation dialog
   - After reset, value should change to default and reset button should become 
disabled
   
   **Actual Result:**
   - Reset button was enabled (darker icon, clickable) when value was 
`10.0.34.171`
   - Confirmation dialog appeared with message "Reset to default value - Are 
you sure you want reset configuration - host?"
   - After clicking "Yes", value changed from `10.0.34.171` to `localhost`
   - Reset button became greyed out/disabled after reset (UI updated without 
page refresh)
   
   **Test Evidence:**
   - Configuration tested: `host`
   - Value before reset: `10.0.34.171`
   - Default value: `localhost`
   - Value after reset: `localhost`
   - Reset button state before: Enabled (clickable)
   - Reset button state after: Disabled (greyed out)
   - Confirmation dialog: Displayed correctly
   
   - before reset
   <img width="1568" height="175" alt="image" 
src="https://github.com/user-attachments/assets/5c4dcf4f-2967-4926-89a4-3d32e1dabd22";
 />
   
   - during
   <img width="1568" height="575" alt="image" 
src="https://github.com/user-attachments/assets/6c854804-d4ee-4367-81c0-ef2fe22a7286";
 />
   
   - after reset
   <img width="1568" height="169" alt="image" 
src="https://github.com/user-attachments/assets/a5d7339d-bdee-42d9-bcf0-a22d23cac58e";
 />
   
   ## TC3: UI refresh after value update and reset
   
   **Objective:**
   Verify the complete cycle: modify a configuration value, confirm reset 
button becomes enabled, perform reset, and confirm reset button becomes 
disabled again - all without manual page refresh.
   
   **Test Steps:**
   1. Navigated to Configuration → Global Settings
   2. Searched for configuration: `expunge.delay`
   3. Verified initial state: value `86400` equals default `86400`, reset 
button disabled
   4. Clicked on value field and modified value to `90000`
   5. Clicked save button
   6. Observed success notification "Setting Updated: expunge.delay"
   7. Verified reset button became enabled after save
   8. Clicked reset button
   9. Confirmation dialog appeared: "Are you sure you want reset configuration 
- expunge.delay?"
   10. Clicked "Yes" to confirm
   11. Observed success notification "Setting expunge.delay Reset to default 
value"
   12. Verified value returned to `86400` and reset button became disabled
   
   **Expected Result:**
   - Reset button should be disabled when value equals default
   - After modifying value, reset button should become enabled (without page 
refresh)
   - After reset, value should return to default and reset button should become 
disabled (without page refresh)
   
   **Actual Result:**
   - Initial state: value `86400`, reset button disabled (greyed out)
   - After modifying to `90000` and saving: reset button became enabled (darker 
icon, clickable)
   - Confirmation dialog displayed correctly
   - After reset: value returned to `86400`, reset button became disabled 
(greyed out)
   - UI updated dynamically without requiring manual page refresh
   
   **Test Evidence:**
   - Configuration tested: `expunge.delay`
   - Initial value: `86400` (default)
   - Modified value: `90000`
   - Value after reset: `86400`
   - Success notification on update: "Setting Updated: expunge.delay"
   - Success notification on reset: "Setting expunge.delay Reset to default 
value"
   - Status notification: "Please restart your management server(s) for your 
new settings to take effect"
   - Reset button state transitions: Disabled → Enabled (after edit) → Disabled 
(after reset)
   
   [Screencast from 2026-01-27 
14-31-33.webm](https://github.com/user-attachments/assets/9409768d-9ac6-4978-bb9c-2c9bf8dc209d)
   
   ## TC4: Zone-level configuration reset behavior
   
   **Objective:**
   Verify that the reset button behavior works correctly at the Zone scope 
level.
   
   **Test Steps:**
   1. Navigated to Infrastructure → Zones
   2. Selected zone: `ref-trl-10742-k-Mol9-rositsa-kyuchukova`
   3. Clicked on Settings tab
   4. Verified reset button states for configurations
   
   **Expected Result:**
   - Reset button disabled for configurations where value equals default
   - Reset button enabled for configurations where value differs from default
   
   **Actual Result:**
   - Configurations with default values show reset button as inactive/greyed out
   - Configurations with modified values show reset button as enabled and can 
be reset
   
   **Test Evidence:**
   - Zone tested: `ref-trl-10742-k-Mol9-rositsa-kyuchukova`
   - Zone ID: `f5705cb8-e9dc-4582-aecc-f55bb443198c`
   - Reset button behavior confirmed consistent with Global Settings behavior
   
   [Screencast from 2026-01-27 
14-35-05.webm](https://github.com/user-attachments/assets/e728aeb9-1d5d-4cc1-9f7b-10244048aa84)
   
   
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to