- 🇩🇪Germany Anybody Porta Westfalica
HUGE ++++++++++ on this. The module is really unstable and needs a lot of tests be become far more stable. Please help, Drupal community! :)
- 🇩🇪Germany Anybody Porta Westfalica
Tests should still be implemented against 2.x and cherry-picked into 3.x then.
- 🇨🇦Canada ambient.impact Toronto
Agreed. I wish I had more time for this, but if anyone is able to help and needs some advice or examples, please check the other projects I'm a maintainer on via my profile, especially Config Enforce and Config Enforce Devel; they have a bunch of tests and more being added as time goes on.
- 🇩🇪Germany Anybody Porta Westfalica
What should be tested:
- Install / uninstall
- manifest.json present on the expected pages
- Permissions
- Contents of the manifest.json to match the values from the settings page
- Returned paths / URLs from the manifest.json working, e.g. images
- Drupal login / logout with PWA enabled, as there were issues in the past
- Assigned to Grevil
- 🇩🇪Germany Anybody Porta Westfalica
Once tests are in place, please check the list of issues and close the ones that are proven to work now by tests. I think there are several that have been fixed in the meantime or are duplicates.
- last update
over 1 year ago 2 fail - @grevil opened merge request.
- 🇩🇪Germany Grevil
No idea who came up with the 'getDisplayValue()' logic... Removed that unnecessary overhead.
- last update
over 1 year ago 2 fail - last update
over 1 year ago 2 fail - last update
over 1 year ago 7 pass - last update
over 1 year ago 9 pass - Status changed to Needs review
over 1 year ago 12:42pm 11 August 2023 - 🇩🇪Germany Grevil
Alright, this MR does a LOT and eventually feels a bit out of scope, but most changes here were done, while checking failing tests and seeing some questionable code in the process. Hence, I renamed the issue title. Although it won't break any existing sites having the module enabled.
I couldn't yet write tests for the service worker, but commented why in a comment. I also didn't write tests for the app icon settings, hence they are completely borked anyway and will get refactored in a separate issue.
Please review!
- Issue was unassigned.
- last update
over 1 year ago 9 pass - last update
over 1 year ago 9 pass - Status changed to Needs work
over 1 year ago 2:58pm 11 August 2023 - 🇩🇪Germany Anybody Porta Westfalica
Thanks @Grevil - great work! Just some minor comments to fix.
For the Service Worker tests: Please separate that as issue, I don't think it's that important and might be really hard to run automated tests against. Maybe even impossible. Shouldn't be our priority here.
- last update
over 1 year ago 9 pass - last update
over 1 year ago 9 pass - Status changed to Needs review
over 1 year ago 2:26pm 17 August 2023 - Status changed to Fixed
over 1 year ago 2:58pm 17 August 2023 Automatically closed - issue fixed for 2 weeks with no activity.