From d7f58ac85ad00613d3a1dce0bfdc711097688503 Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Tue, 9 Apr 2024 14:37:34 -0400 Subject: [PATCH] fix: cypress test Signed-off-by: Elizabeth Danzberger --- cypress/e2e/column-selection.cy.js | 3 +-- src/modules/modals/CreateRow.vue | 5 +++++ src/views/ContentReferenceWidget.vue | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/cypress/e2e/column-selection.cy.js b/cypress/e2e/column-selection.cy.js index 3f0459e01..2a4b852e7 100644 --- a/cypress/e2e/column-selection.cy.js +++ b/cypress/e2e/column-selection.cy.js @@ -29,8 +29,7 @@ describe('Test column ' + columnTitle, () => { cy.get('.modal__content h2').contains('Create row').should('be.visible') cy.get('.modal__content .title').contains(columnTitle).should('be.visible') cy.get('.modal__content .title').click() - // cy.get('.modal__content .select span[title="second option"]').should('be.visible') - cy.get('.vs__dropdown-toggle .vs__selected span[title="second option"]').should('be.visible') + cy.get('.vs__dropdown-toggle .vs__selected span[title="second option"]').should('exist') cy.get('button').contains('Save').click() cy.get('.custom-table table tr td div').contains('second option').should('be.visible') diff --git a/src/modules/modals/CreateRow.vue b/src/modules/modals/CreateRow.vue index 2dc870dc7..f6927cc7b 100644 --- a/src/modules/modals/CreateRow.vue +++ b/src/modules/modals/CreateRow.vue @@ -187,6 +187,11 @@ export default { :where(.slot.fix-col-4 input, .slot.fix-col-4 .row) { min-width: 100% !important; } + + :where(.name-parts) { + display: block !important; + max-width: fit-content !important; + } } .padding-right { diff --git a/src/views/ContentReferenceWidget.vue b/src/views/ContentReferenceWidget.vue index d7287b7b5..f20f5f994 100644 --- a/src/views/ContentReferenceWidget.vue +++ b/src/views/ContentReferenceWidget.vue @@ -94,13 +94,13 @@ export default { }, }, - /*mounted() { + mounted() { useResizeObserver(this.$el, (entries) => { const entry = entries[0] const { width } = entry.contentRect this.$el.style.setProperty('--widget-content-width', `${width}px`) }) - },*/ + }, methods: { async createRow() {