Skip to content

fix: prevent misidentifying objects with 'text' field as spans #3832

fix: prevent misidentifying objects with 'text' field as spans

fix: prevent misidentifying objects with 'text' field as spans #3832

Triggered via pull request February 8, 2026 13:14
Status Failure
Total duration 4m 32s
Artifacts

test-browser.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

9 errors
Browser tests (chromium)
Process completed with exit code 1.
[browser (chromium)] tests/event.mutation.test.tsx > event.mutation > Scenario: Batching typing mutations: packages/editor/tests/event.mutation.test.tsx#L115
AssertionError: expected [ { type: 'mutation', …(2) }, …(2) ] to have a length of 2 but got 3 - Expected + Received - 2 + 3 ❯ toHaveLength tests/event.mutation.test.tsx:115:22
Browser tests (chromium)
@portabletext/editor#test:browser:chromium: command (/home/runner/work/editor/editor/packages/editor) /home/runner/setup-pnpm/node_modules/.bin/pnpm run test:browser:chromium exited (1)
Browser tests (firefox)
Process completed with exit code 1.
[browser (firefox)] tests/undo-redo-collaboration.test.tsx > Undo/Redo Collaboration (hand-coded) > editor A undo their change after B did an unrelated change (single-line, emoji): packages/editor/tests/undo-redo-collaboration.test.tsx#L311
Error: Test timed out in 15000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ tests/undo-redo-collaboration.test.tsx:311:7
[browser (firefox)] tests/undo-redo-collaboration.test.tsx > Undo/Redo Collaboration (hand-coded) > editor A undo their change after B did an unrelated change (single-line, emoji): packages/editor/tests/undo-redo-collaboration.test.tsx#L335
AssertionError: expected [ Array(1) ] to deeply equal [ Array(1) ] - Expected + Received [ - "A curious 🦊 named Felix lived in the 🪄🌲 of Willowwood. One day, he discovered a mysterious 🕳️, which lead to a magical 🌌. They had extraordinary adventures together, befriending a 🧚, who gave them so many 📚 that they never lacked for reading material", + "A curious 🦊 named Felix lived in the 🪄🌲 of Willowwood. One day, he discovered a mysterious 🕳️, which lead to a magic al 🌌. They had extraordinary adventures together, befriending a 🧚, who gave them so many 📚 that they never lacked for reading material", ] ❯ toEqual tests/undo-redo-collaboration.test.tsx:335:56 ❯ waitFor tests/undo-redo-collaboration.test.tsx:334:13
[browser (firefox)] tests/undo-redo-collaboration.test.tsx > Undo/Redo Collaboration (hand-coded) > editor A undo their change after B did an unrelated change (single-line, emoji): packages/editor/tests/undo-redo-collaboration.test.tsx#L335
AssertionError: expected [ Array(1) ] to deeply equal [ Array(1) ] - Expected + Received [ - "A curious 🦊 named Felix lived in the 🪄🌲 of Willowwood. One day, he discovered a mysterious 🕳️, which lead to a magical 🌌. They had extraordinary adventures together, befriending a 🧚, who gave them so many 📚 that they never lacked for reading material", + "A curious 🦊 named Felix lived in the 🪄🌲 of Willowwood. One day, he discovered a mysterious 🕳️, which lead to a magicy al 🌌. They had extraordinary adventures together, befriending a 🧚, who gave them so many 📚 that they never lacked for reading material!nicorn name", ] ❯ toEqual tests/undo-redo-collaboration.test.tsx:335:56 ❯ waitFor tests/undo-redo-collaboration.test.tsx:334:13
[browser (firefox)] tests/undo-redo-collaboration.test.tsx > Undo/Redo Collaboration (hand-coded) > editor A undo their change after B did an unrelated change (single-line, emoji): packages/editor/tests/undo-redo-collaboration.test.tsx#L311
Error: Test timed out in 15000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ tests/undo-redo-collaboration.test.tsx:311:7
Browser tests (firefox)
@portabletext/editor#test:browser:firefox: command (/home/runner/work/editor/editor/packages/editor) /home/runner/setup-pnpm/node_modules/.bin/pnpm run test:browser:firefox exited (1)