Skip to content

Fix random failure in test cypress blocks-table.js - #8326

Closed
wesleybl wants to merge 2 commits into
mainfrom
ci-blocks-table
Closed

Fix random failure in test cypress blocks-table.js#8326
wesleybl wants to merge 2 commits into
mainfrom
ci-blocks-table

Conversation

@wesleybl

@wesleybl wesleybl commented Jun 11, 2026

Copy link
Copy Markdown
Member

Added { timeout: 15000 } to all view-mode assertions after save.

Fix error:

  1) Table Block Tests
       Add table block:
     AssertionError: Timed out retrying after 4000ms: expected '<th.left.aligned.middle.aligned>' to contain 'column 1 / row 1'
      at Context.eval (webpack://@plone/volto/./cypress/tests/core/blocks/blocks-table.js:77:60)

See: https://github.com/plone/volto/actions/runs/27320633041/job/80710719698?pr=8325#step:4:714

Added `{ timeout: 15000 }` to all view-mode assertions after save.
@Wagner3UB

Copy link
Copy Markdown
Contributor

@wesleybl I had this problem and fixed it in my last PR https://github.com/plone/volto/pull/8321/changes. It was because the CI here runs headless and the test was too fast. When the test tried to select the first cell, it accidentally glitched out due to a Slate behavior and exited the table without writing the text.

If you want to bring the change over here to keep it separate, we can do that, and then I will pull it into my branch as soon as we merge.

@Wagner3UB

Copy link
Copy Markdown
Contributor

and our solutions are different, btw: #8321.

@wesleybl

Copy link
Copy Markdown
Member Author

@Wagner3UB Your solution is more complete. Could you please submit a PR to move it to the main branch? I'll close this one.

@wesleybl wesleybl closed this Jun 12, 2026
@wesleybl
wesleybl deleted the ci-blocks-table branch June 12, 2026 12:12
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.

2 participants