regexr icon indicating copy to clipboard operation
regexr copied to clipboard

Lost changes and tests

Open alekdavisintel opened this issue 2 years ago • 2 comments

I have a pattern with a few dozen test that I saved for myself under my patterns (it was not published). I wanted to make a change, so I made modifications, added some tests, and clicked the 'Save' button. It looked fine, but once I loaded a different pattern and switched back to the one I modified, all of my changes were gone. Then I clicked the gear option, re-did the changes, added more test, clicked the save button (I did not clone), and after loading a different pattern and coming back to the one I changed I can see the pattern update but all of the test are gone. Because these involved multi-language tests (Unicode, etc), it took me many days of research and implementation of various test scenarios, so no I need to redo everything again. And the bad part is that I do not even know what caused it. Until today I was able to make changes to the pattern and add/delete tests, and it all worked fine. Is there a way to get the test from history? Any idea what would cause the Save button not to save? And for the tests to be deleted? Thanks.

alekdavisintel avatar Mar 17 '23 18:03 alekdavisintel

UPDATE: It just happened again. I spent the last hour adding test cases. I saved after adding half a dozen and it worked okay. But I then added a couple dozen more, clicked the "Save" button, and all of them disappeared, including the ones save previously. The regular expression pattern stayed, though, but the tests feature is totally broken fore me.

alekdavisintel avatar Mar 17 '23 20:03 alekdavisintel

UPDATE: I may have figured it out. Not 100% sure (since there may be more to it), but it seems to happen when I add an emoji character to the text to be checked, e.g. 😆. I actually needed a test to make sure text supports Unicode alpha characters but not Emojis, so it works fine for testing, but saving it wipes out all tests cases with no way to bring them back. I can validate Emojis using other means, so it's not a big deal, but this looks like a nasty bug to me. I will try to rewrite test cases for the third time skipping Emojis, but if I lose them again, I will be really pissed. :-)

alekdavisintel avatar Mar 17 '23 20:03 alekdavisintel