Back to Powertoys

Release Test Checklist Migration Progress

src/modules/Hosts/Hosts.UITests.Next/Release-Test-Checklist-Migration-Progress.md

0.101.2492.02.5 KB
Original Source

Hosts File Editor UI-test migration progress

Refer to the release checklist for all manual tests.

Existing Manual Test-cases run by previous PowerToys owner

For existing manual test-cases, we will convert them to UI-Tests and run them in CI and Release pipeline

  • Launch Host File Editor:
    • Verify the application exits if "Quit" is clicked on the initial warning. (HostsSettingTests.TestWarningDialog)
    • Launch Host File Editor again and click "Accept". The module should not close. (HostsSettingTests.TestWarningDialog)
    • Open the hosts file in an auto-refreshing editor and verify editor changes reach the file. (HostModuleTests.TestEntryTogglesAreAppliedToHostsFile)
    • Enable and disable lines and verify they are applied to the file. (HostModuleTests.TestEntryTogglesAreAppliedToHostsFile)
    • Add a new entry and verify it is applied. (HostModuleTests.TestEntryTogglesAreAppliedToHostsFile)
    • Add an entry with more than 9 hosts directly to the hosts file and verify it is split on loading and the teaching tip is shown. (HostModuleTests.TestTooManyHosts)
    • Try to filter for lines and verify you can find them. (HostModuleTests.TestFilterControl)
    • Click the "Open hosts file" button and verify it opens the hosts document in Notepad. (HostModuleTests.TestOpenHostsFileButtonOpensNotepad)
  • Test the different settings and verify they are applied:
    • Launch as Administrator. The automated test verifies the admin shared-event route and elevated-agent save behavior, but a real non-elevated launch through UAC remains manual. (HostsSettingTests.TestOpenAsAdministrator)
    • Show a warning at startup. (HostsSettingTests.TestWarningDialog)
    • Additional lines position. (HostsSettingTests.TestAdditionalLinesPosition)

Additional UI-Tests cases

  • Add manually an entry with more than 9 hosts and Add button should be disabled. (HostModuleTests.TestTooManyHosts)
  • Add manually an entry with less or equal 9 hosts and Add button should be enabled. (HostModuleTests.TestTooManyHosts)
  • Should show empty view if no entries. (HostModuleTests.TestEntryButtonsAndEmptyView)
  • Add a new entry from both the empty-view link and toolbar button. (HostModuleTests.TestEntryButtonsAndEmptyView)
  • Show save host file error if not run as Administrator. (HostModuleTests.TestErrorMessageWithNonAdminPermission)