From 77ce23a190b6b88f95c4e2da7d09c919524411ed Mon Sep 17 00:00:00 2001 From: Eleazar Resendez Date: Thu, 15 Jan 2026 10:51:09 -0600 Subject: [PATCH 1/2] Fix collection record list screen links when collections load async --- src/components/inspector/collection-records-list.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/inspector/collection-records-list.vue b/src/components/inspector/collection-records-list.vue index 7a24a1b12..097222e5b 100644 --- a/src/components/inspector/collection-records-list.vue +++ b/src/components/inspector/collection-records-list.vue @@ -137,6 +137,9 @@ export default { value: collection.id })) ]; + if (this.collectionId) { + this.updateScreenIds(); + } }); }, getFields() { From f31266a914d4a494cfe1fc44decff838f709815e Mon Sep 17 00:00:00 2001 From: Eleazar Resendez Date: Fri, 16 Jan 2026 10:49:51 -0600 Subject: [PATCH 2/2] test(e2e): fix select list selectors after vue-form-elements name change --- tests/e2e/specs/ComplexScreen.spec.js | 12 +++++++++--- tests/e2e/specs/SelectListWatcher.spec.js | 4 ++-- tests/e2e/specs/SingleSelectWithInvalidValue.spec.js | 6 +++--- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/tests/e2e/specs/ComplexScreen.spec.js b/tests/e2e/specs/ComplexScreen.spec.js index f7c50f7ee..551f4589b 100644 --- a/tests/e2e/specs/ComplexScreen.spec.js +++ b/tests/e2e/specs/ComplexScreen.spec.js @@ -761,9 +761,15 @@ describe("Complex screen", () => { cy.get("[data-cy=preview-content] [name=form_checkbox_6]").should( "be.checked" ); - cy.get("[data-cy=preview-content] [name=form_select_list_3]").eq(1).click(); - cy.get("[data-cy=preview-content] [name=form_select_list_4]").eq(1).click(); // Select b - cy.get("[data-cy=preview-content] [name=form_select_list_4]").eq(2).click(); // Select c + cy.get( + '[data-cy=preview-content] [id^="form_select_list_3-b-"]' + ).click(); + cy.get( + '[data-cy=preview-content] [id^="form_select_list_4-b-"]' + ).click(); // Select b + cy.get( + '[data-cy=preview-content] [id^="form_select_list_4-c-"]' + ).click(); // Select c // record list - complete new fields cy.get( "[data-cy=preview-content] [data-cy=screen-field-form_record_list_1] [data-cy=edit-row]" diff --git a/tests/e2e/specs/SelectListWatcher.spec.js b/tests/e2e/specs/SelectListWatcher.spec.js index 7de52ce75..cbab482c9 100644 --- a/tests/e2e/specs/SelectListWatcher.spec.js +++ b/tests/e2e/specs/SelectListWatcher.spec.js @@ -51,7 +51,7 @@ describe("SelectList - Watcher", () => { // Select "John" option in radio buttons "form_select_list_2" cy.get( - "[data-cy=preview-content] [name=form_select_list_2][value=John]" + '[data-cy=preview-content] [id^="form_select_list_2-John-"]' ).click(); // Select "Mary" option in select list "form_select_list_3" @@ -78,7 +78,7 @@ describe("SelectList - Watcher", () => { // Select "John" option in radio buttons "form_select_list_2" cy.get( - "[data-cy=preview-content] [name=form_select_list_2][value=John]" + '[data-cy=preview-content] [id^="form_select_list_2-John-"]' ).click(); // Select "Mary" option in select list "form_select_list_3" diff --git a/tests/e2e/specs/SingleSelectWithInvalidValue.spec.js b/tests/e2e/specs/SingleSelectWithInvalidValue.spec.js index 684c800de..18569070d 100644 --- a/tests/e2e/specs/SingleSelectWithInvalidValue.spec.js +++ b/tests/e2e/specs/SingleSelectWithInvalidValue.spec.js @@ -23,9 +23,9 @@ describe("single select with invalid initial value", () => { cy.setPreviewDataInput({ person: [] }); cy.get("[data-cy=mode-preview]").click(); - cy.get("[data-cy=preview-content] [name=person]").eq(0).click(); - cy.get("[data-cy=preview-content] [name=person]").eq(1).click(); - cy.get("[data-cy=preview-content] [name=person]").eq(0).click(); + cy.get('[data-cy=preview-content] [id^="person-one-"]').click(); + cy.get('[data-cy=preview-content] [id^="person-two-"]').click(); + cy.get('[data-cy=preview-content] [id^="person-one-"]').click(); // Check the data of the screen cy.assertPreviewData({