- Issue created by @Grevil
- Issue was unassigned.
- Status changed to Closed: duplicate
over 1 year ago 7:45am 11 July 2023 - 🇩🇪Germany Anybody Porta Westfalica
Closing this as duplicate of 📌 Test & ensure attributes and complex HTML within the mailto link doesn't break Fixed which allows fixes, if the tests fail and already provides details.
- Status changed to Active
over 1 year ago 7:52am 11 July 2023 - 🇩🇪Germany Grevil
I'd like to only write tests inside this issue, no code adjustments.
- last update
over 1 year ago 3 pass, 2 fail - @grevil opened merge request.
- 🇩🇪Germany Grevil
Ok, I finished the tests for 📌 Test & ensure attributes and complex HTML within the mailto link doesn't break Fixed . Turns out the module isn't compatible with any complex mailto structures.
- 🇩🇪Germany Anybody Porta Westfalica
Thanks @Grevil. Yes, we should separate these mailto: parameter tests and comment them out with a link to this feature request to be implemented: ✨ Allow for further mailto: link parameters like subject, cc, ... Active
This is nothing important for the base functionality of SpamSpan and very rarely used.
The important part are the complex HTML structure tests from 📌 Test & ensure attributes and complex HTML within the mailto link doesn't break Fixed . That needs to work fine :)
- last update
over 1 year ago 4 pass, 3 fail - last update
over 1 year ago 12 pass, 3 fail - last update
over 1 year ago 12 pass, 1 fail - Status changed to RTBC
over 1 year ago 2:30pm 11 July 2023 - 🇩🇪Germany Anybody Porta Westfalica
@Grevil: RTBC from my side. Merge as soon as you need it.
tests/src/FunctionalJavascript/SpamSpanComplexHrefTest.php should better be named tests/src/FunctionalJavascript/SpamSpanComplexHrefMailtoTest.php as that's more clearly what it does :)
- last update
over 1 year ago 15 pass - last update
over 1 year ago 15 pass - Status changed to Needs review
over 1 year ago 2:34pm 11 July 2023 - 🇩🇪Germany Grevil
Alright, we should have all basic test cases covered now. I disabled the complex href tests for now, as well as the "testMailUnobscuringWithMailAndStringInText" test, since that is not working yet (we can enable this in the appropriate issue).
Please review!
- Status changed to RTBC
over 1 year ago 2:52pm 11 July 2023 - 🇩🇪Germany Grevil
Alright, all tests are green! Let's commit this, as it has already been RTBC'd aswell! :)
- Status changed to Fixed
over 1 year ago 2:53pm 11 July 2023 - 🇧🇪Belgium joevagyok
Nice! We need to test the module without JS as well to make sure that the obfuscated markup - before it's normalized by JS - is correct and still readable. The spampsan twig extension is not tested either, but I already made a unit test for it in #3372768 🐛 Twig extension strips anchor tags from the processed text Fixed .
- 🇩🇪Germany Anybody Porta Westfalica
@joevagyok I think there already were unit tests before in the module. So that's existing. See https://git.drupalcode.org/project/spamspan/-/blob/3.x/tests/src/Kernel/...
Thank you for your additional tests. We'll look into the issues and comment there :)
Automatically closed - issue fixed for 2 weeks with no activity.