Skip to content

Fix remaining order dependent translation specs - #2544

Merged
tf merged 1 commit into
codevise:masterfrom
tf:translation-order-specs
Dec 1, 2026
Merged

tf merged 1 commit into
codevise:masterfrom
tf:translation-order-specs

Conversation

@tf

@tf tf commented Dec 1, 2026

Copy link
Copy Markdown
Member

Translations are ordered by title, and factory titles come from a sequence. Specs that compare translations with an array in creation order fail for seeds where the sequence crosses from one digit to two between the entries, since "Entry 10" sorts before "Entry 9". f6d0e2c fixed this for DraftEntry and PublishedEntry; these three assertions were left:

None of these examples is about the order, so they now use contain_exactly.

Advancing the title sequence before each example (by 7 or 8 entries) makes each of the three examples fail on master and pass with this change.

Translations are ordered by title, and factory titles are sequence
based. As in f6d0e2c, comparing them with an array in creation order
fails for seeds where the sequence crosses from one digit to two
between the entries, since "Entry 10" sorts before "Entry 9":

https://github.com/codevise/pageflow/actions/runs/46627048745/job/142571428239

None of these examples is about the order, so compare the contained
entries instead.
@tf tf added this to the v17.3 milestone Dec 1, 2026
@tf
tf merged commit f7bfcce into codevise:master Dec 1, 2026
16 checks passed
@tf
tf deleted the translation-order-specs branch December 1, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant