- Issue created by @larowlan
- Merge request !875Issue #3517868: Add e2e test for multi-value textfield β (Merged) created by larowlan
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
We're getting fatals from the backend on adding a third item, so this is catching an actual regression.
Will dig into it tomorrow
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Got to the bottom of this, the code we added for the media library to keep track of form state cache didn't work if the triggering element in an ajax callback had limit validation errors.
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Bumping to critical bug because I marked π Page Data Form + Options as Buttons error on AJAX submits Active as a duplicate
Assigning to @bnjmnm to review - First commit to issue fork.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
π€ͺπ€― Wow wow wow @
ClientDataToEntityConverter::setEntityFields()
, but given the detailed (and essential!) comments left by @larowlan on there, I feel zero need to step through all that again to verify it. This looks ready to me.Unfortunately the
widget-multivalue.cy.js
e2e test failed withcy:command β assert expected **<input#edit-field-xbt-unlimited-text-0-value--5Ex2yiBamp4.rt-reset.rt-TextFieldInput.js-text-full.text-full.form-text>** to have value **item five**, but the value was **item one**
- πΊπΈUnited States bnjmnm Ann Arbor, MI
I'm running into the same test failure locally , which is an existing test that also deals with the multi-value textfield widget. It failing on the portion of the test where the items in the multivalue field are reordered. The dragging of the lower item to the top no longer seems to register.
This still works manually, though, so hopefully it's just a matter of tweaking widget-multivalue.cy.js a bit. Unassigning myself for now.
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
This still works manually, though, so hopefully it's just a matter of tweaking widget-multivalue.cy.js a bit. Unassigning myself for now.
I had a thought about this while I was on leave - I think the issue is the
realDnd
code we have is confused by the fact the field is in a fixed height scrollable pane. When the test was written we had a small number of fields but as we've expanded things it has now grown. I'll see if making the weight of this field lighter so that is shows in the viewport without scrolling makes a difference. - π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Added a related issue for locking
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Postponed π EntityFormController should load auto save state if it exists Active on this as it is very obvious once this is in (you lose data)
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
I'm really curious to see if this will also make the multi-value widget for the new
sparkline
SDC that π [later phase] Support matching `{type: array, β¦}` prop shapes Postponed introduced work! π€But: out of scope here, assigning to @bnjmnm for final sign-off!
- πΊπΈUnited States bnjmnm Ann Arbor, MI
I spotted one small thing mentioned in an MR comment that I think I can just remove, but I wanted to confirm with the original author. If it's as simple as that, removing and re-rtbcing seems fine to me and I can commit.
-
bnjmnm β
committed 9f70cd14 on 0.x authored by
larowlan β
Issue #3517868 by larowlan, bnjmnm, wim leers: Add e2e tests for multi-...
-
bnjmnm β
committed 9f70cd14 on 0.x authored by
larowlan β