- https://martinfowler.com/articles/practical-test-pyramid.html
- https://kentcdodds.com/blog/the-testing-trophy-and-testing-classifications
Type system:
- TypeScript (tsconfig.json)
Here are all relevant media queries to consider when supporting Contrast Themes / Windows High Contrast Mode.
(forced-colors: none), (prefers-color-scheme: light), (prefers-contrast: no-preference)
class TestHeaderBreadcrumbs(TestCase, WagtailTestUtils): | |
def test_choose_parent_page(self): | |
response = self.client.get("/admin/tests/eventpage/choose_parent/") | |
# check that home breadcrumb link exists | |
expected = """ | |
<li class="breadcrumb-item home"> | |
<a href="/admin/" class="breadcrumb-link"> | |
<svg class="icon icon-home home_icon" aria-hidden="true"> | |
<use href="#icon-home"></use> |
The Wagtail 3.0 admin interface introduces two new indigo shades which are currently not customisable. This can be problematic for Wagtail sites currently customising Wagtail’s primary color.
To make those shades customisable, we can override Wagtail’s built-in CSS files with specially-crafted alternatives which use CSS variables for those new colors.
The simplest way to change colors is to change them for the whole of the Wagtail admin at once. First-clone this gist as a sub-folder in your Wagtail project:
See
This review inspects the code of 63 Wagtail packages, to check for patterns which will need to be reworked as part of our UI roadmap.
Please join #package-maintainers on the Wagtail Slack.
This caching setup will store the output of npm and Poetry installations, rather than both tools’ respective cache folders.
if: steps.poetry-cache.outputs.cache-hit != 'true'
)key
only rather than restore-keys
).key
needs to be a truthful representation of the installation (including OS, language version, installer version, lockfile hash).key
also shouldn’t be dependent on the branch / PR build identifiers.This will perfom:
cron: | |
- description: 'publish_scheduled_pages running every hour' | |
url: /commands/publish-scheduled-pages/ | |
schedule: every 1 hours |
{% extends "base.html" %} | |
{% load wagtailcore_tags %} | |
{% load wagtailimages_tags %} | |
{% load wagtailpictureproposal_tags %} | |
{% block body_class %}template-homepage{% endblock %} | |
{% block content %} | |
<style> |