Skip to content

Commit

Permalink
fix: cypress test
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
  • Loading branch information
elzody committed Apr 9, 2024
1 parent 277a936 commit d7f58ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cypress/e2e/column-selection.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
5 changes: 5 additions & 0 deletions src/modules/modals/CreateRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/views/ContentReferenceWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d7f58ac

Please sign in to comment.