Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename test cases and corresponding snapshots
- Use new, fuller names when clicking theme menu items. - Update test case names to consistently refer to the theme, except for the default theme (Classic Light), which is omitted. - Update snapshot image file names to match changed test case names. I exported a patch and winnowed it down to a set of replacements, and then had ChatGPT give me this Powershell script: # Define the replacements as old -> new mappings $replacements = @{ "modern theme eye gaze mode"="modern light theme -- eye gaze mode"; "modern theme"="modern light theme -- main screenshot"; "modern theme edit colors dialog (expanded)"="modern light theme -- edit colors dialog (expanded)"; "winter theme"="winter theme -- main screenshot"; "winter theme edit colors dialog (expanded)"="winter theme -- edit colors dialog (expanded)"; "winter theme vertical color box"="winter theme -- vertical color box"; "classic theme vertical color box"="'vertical color box"; "classic theme edit colors dialog"="edit colors dialog"; "modern theme vertical color box"="modern light theme -- vertical color box" } # Get all files in the current directory $files = Get-ChildItem -File foreach ($file in $files) { # Store the original file name $originalName = $file.Name # Perform each replacement on the file name foreach ($replacement in $replacements.GetEnumerator()) { if ($originalName -like "*$($replacement.Key)*") { $newName = $originalName -replace [regex]::Escape($replacement.Key), $replacement.Value Rename-Item -Path $originalName -NewName $newName # Update originalName to handle multiple replacements $originalName = $newName } } }
- Loading branch information