-
-
Notifications
You must be signed in to change notification settings - Fork 753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Normalize list in list; remove empty elements in list items #4583
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for volto canceled.
|
…des, so we simplify the fix
Passing run #4678 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
vokoscreenNG-2023-03-22_12-23-34.webmSo the solution is to automatically fix the structure to the desired state in the normalizeNode. |
@davisagli Somehow the latest slate doesn't play well with cypress. See this PR, with just the lib upgrade, where a lot of tests fail: #4593 This was a solution suggested on the web somewhere. |
@@ -19,7 +19,7 @@ import { | |||
export function syncCreateTableBlock(rows) { | |||
const id = uuid(); | |||
const block = { | |||
'@type': 'table', | |||
'@type': 'slateTable', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea why this wasn't flagged before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ups
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but see comment.
@@ -12,6 +12,16 @@ before(function () { | |||
|
|||
beforeEach(function () { | |||
cy.log('Setting up API fixture'); | |||
|
|||
// avoid a mysterious test failure with upgrade to slate-react 0.91.4 | |||
const resizeObserverLoopErrRe = /^[^(ResizeObserver loop limit exceeded)]/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wut? T_T
"slate": "0.84.0", | ||
"slate-hyperscript": "0.81.3", | ||
"slate-react": "0.83.2", | ||
"slate": "0.91.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this affect existing sites in any way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sneridagh no, I don't think so.
The slate upgrade alone makes our tests fail, I have one PR with only that change. So, regardless of anything, if we want to make the upgrade, we need to do the test fix.
@sneridagh Though let's not rush with this. I'll run more tests, think about it more. If anyone is willing to test this, please do. |
Fixes #4538