Skip to content

[9.x] Fix failing date tests#814

Merged
duncanmcclean merged 3 commits into
9.xfrom
test-failures
May 11, 2026
Merged

[9.x] Fix failing date tests#814
duncanmcclean merged 3 commits into
9.xfrom
test-failures

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes a test failure in can_edit_resource_with_date_field_with_default_format caused by an upstream change in Statamic CMS.

This was happening because CMS now returns just the date string (e.g. 2026-05-11) when time is disabled on a date field, rather than a full ISO 8601 Zulu string (e.g. 2026-05-11T00:00:00.000Z).

This PR fixes it by updating the test expectation to use format('Y-m-d') instead of toIso8601ZuluString('millisecond').

duncanmcclean and others added 2 commits May 11, 2026 09:13
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@duncanmcclean duncanmcclean changed the title [9.x] Fix date field test to match updated CMS behaviour [9.x] Fix failing date tests May 11, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@duncanmcclean duncanmcclean merged commit 15593e2 into 9.x May 11, 2026
16 checks passed
@duncanmcclean duncanmcclean deleted the test-failures branch May 11, 2026 08:40
@github-actions

Copy link
Copy Markdown

Released as part of v9.4.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant