-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix ListItem styling in PDF exports #1781
Conversation
Tests are failing because the test-PDFs need to be regenerated; not quite sure how I do this? Where do I get the page content that's used for the Circle-CI tests? |
On CircleCI, the same test data is used as locally: integreat_cms/cms/fixtures/test_data.json In order to reset your local database, execute the dev tool ./dev-tools/prune_database.sh and restart the server. It should then automatically load the initial test data. |
Thanks for the help! Did that, and redownloaded & pushed the new PDFs. Tests are still failing though, it looks like the PDF's slugs have changed...? Not on my local install though, hm. |
Sorry for the poor documentation on this topic, the export uses a quite specific subset of pages for the test cases. You can re-generate the PDFs you need with a little workaround:
|
OK, if that didn't help, I have no idea what's going on 🤔 |
It's weird. Why would the pdf slug differ between Circle CI and a local install? Locally, the tests pass as well. |
The hash is calculated here, before the PDF is even generated, so I don't get how changing a bit of css and uploading new files can even change the hash here 😅 Moreover, this branch with exactly the same PDFs succeeds. |
I assumed one of the arguments of the hash function differed, but wasn't able to determine which one. However...
...that is indeed fascinating. Looks like the branch name is causing the issue - I've renamed this one and now the tests pass. My only guess is this name has been used before, and CircleCI somehwo trips up on this...? Still doesn't really make sense. |
Short description
Fixes styling of nested
div
s inli
s, which now have proper line height and list-style icons.Proposed changes
ul li div
should display asinline-block
instead ofblock
)Side effects
Resolved issues
Fixes: #1350 (partly)
Pull Request Review Guidelines