-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add restore test case button #374
Open
zkkv
wants to merge
18
commits into
JetBrains-Research:development
Choose a base branch
from
zkkv:undo-button
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes made
This PR allows users to restore a test case if they previously removed it. The test appears inactive and there's a message saying "This test was removed". The remove button is replaced with the restore button (in red in the screenshot below).
Why is merge request needed
It is an improvement of user experience.
Other notes
Closes #230
Manually Tested Scenarios
Removing a test. Expected behavior:
Test is deselected and cannot be reselected
Test cannot be edited
Run, send, and two reset buttons are disabled
A message appears saying "This test was removed"
Remove button is replaced with Restore button
Test is not included in coverage statistics
Test is not included in the tob-bar statistics
Lines covered only by that test are not highlighted in the IDE
Restoring a test. Expected behavior:
Remove button behavior is reversed
Test is selected automatically
Pressing "Apply to test suite" when one or more tests are removed. Expected behavior: removed tests are not applied; if all test cases are removed, the test class is empty.
Pressing "Select all" when one or more tests are removed. Expected behavior: removed tests are not selected.
Pressing "Run all" when one or more tests are removed. Expected behavior: removed tests are not run.
Running a restored a test. Expected behavior: test is run normally.
Making changes to a test, deleting and then restoring the test. Expected behavior: user changes are preserved.
Removing a test, switching to another tab and then switching back. Expected behavior: test stays removed.
Removing previously run test. Expected behavior: border stays in place.
Restoring previously run test. Expected behavior: run button is disabled.
Generating another request for a test case, removing it and switching between requests. Expected behavior: test is not reselected
Removing a test, running all tests and clicking on green square in the IDE. Expected behavior: the removed test is not listed.
Removing all tests. Expected behavior: no dialog window pops up saying that all test cases will be removed; this reverts the change done in Close generated tests tab, if all test were deleted #331.
Screenshots
What is missing?
I haven't found anything except that it would be good to be able test this in an automated way.