Skip to content

Tests for Global Replace #8184

Closed
Closed

Description

Test for #7602

  • Windows - Kai Maetzel (@kieferrm)
  • OS X - Benjamin Pasero (@bpasero)
  • Linux - Isidor Nikolic (@isidorn)
  • Replace functionality enablement
    • Replace functionality is disabled when
      • Replace is not shown
      • Replace is shown and Search text box is in focus
    • When Replace functionality is enabled
      • Replace All button is enabled in Replace textbox
      • Replace and Remove buttons are shown on all Search results.
      • Replace preview is shown.
  • Replace preview in results
    • Each result shows the replaced text instead of search text in the result. In case of empty string, original search text is shown in strike-through. Test for color background change for replaced text preview.
    • Changing the replace term in Replace text box changes in the replace preview results
    • When Replace functionality is disabled, Preview only shows search results
  • Replace preview editor
    • Clicking or Enter on an entry results should open a Replace preview editor with Current state on the left and Replace preview on the right. It reveals the selected entry line at the center of the view.
    • Changing the replace term in Replace text box also updates the preview
    • Changing the file outside, updates the Replace preview editor
    • Updating search criteria closes the editors automatically
  • Replace actions
    • Replace action on a file result should replace all entries in the file and File entry is removed from the results.
    • Replace action on a single entry result replace that entry and this entry is removed from the results.
  • Replace all action
    • Replace all action replaces all files and entries shown in the results. Those which are already committed or removed are not considered during this action.
    • A confirmation dialog and progress are shown for this action.
  • Test Undo action per file after performing each action. Note that we do not have yet Global undo support.
  • Test all other actions in the View are working as expected with replace functionality enabled.
  • Test search and replace with different options in Search - Regex, Inclusion and Exclusion etc.,
  • Test Keyboard navigation
    • You can navigate among input boxes and results with Up and Down arrows
    • Use Cmd + Delete or Delete to remove entries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions