diff --git a/cypress/e2e/tables-favorite.cy.js b/cypress/e2e/tables-favorite.cy.js index ac35b0391..73d4d295a 100644 --- a/cypress/e2e/tables-favorite.cy.js +++ b/cypress/e2e/tables-favorite.cy.js @@ -50,7 +50,7 @@ describe('Favorite tables/views', () => { cy.get('[data-cy="navigationViewItem"]').first().as('testView') - cy.get('@testView').parent().parent().should('contain.text', 'Tutorial') + cy.get('@testView').parent().parent().parent().should('contain.text', 'Tutorial') cy.get('@testView').find('[aria-haspopup="menu"]').click({ force: true }) cy.intercept({ method: 'POST', url: '**/ocs/v2.php/apps/tables/api/2/favorites/*/*' }).as('favoriteViewReq') @@ -70,14 +70,14 @@ describe('Favorite tables/views', () => { cy.contains('Remove from favorites').click({ force: true }) cy.wait('@unfavoriteViewReq').its('response.statusCode').should('equal', 200) - cy.get('@testView').parent().parent().should('contain.text', 'Tutorial') + cy.get('@testView').parent().parent().parent().should('contain.text', 'Tutorial') }) it('can (un)favorite views with favorited parent tables', () => { cy.get('[data-cy="navigationViewItem"]').first().as('testView') cy.get('[data-cy="navigationTableItem"]').first().as('tutorialTable') - cy.get('@testView').parent().parent().should('contain.text', 'Tutorial') + cy.get('@testView').parent().parent().parent().should('contain.text', 'Tutorial') cy.get('@testView').find('[aria-haspopup="menu"]').click({ force: true }) cy.contains('Add to favorites').click({ force: true }) diff --git a/src/modules/navigation/partials/NavigationTableItem.vue b/src/modules/navigation/partials/NavigationTableItem.vue index 9daeed369..b6ee1f6af 100644 --- a/src/modules/navigation/partials/NavigationTableItem.vue +++ b/src/modules/navigation/partials/NavigationTableItem.vue @@ -136,10 +136,12 @@ {{ t('tables', 'Delete table') }} - +
+ +
diff --git a/src/shared/components/ncTable/sections/CustomTable.vue b/src/shared/components/ncTable/sections/CustomTable.vue index e1c59b9ab..2c4cab219 100644 --- a/src/shared/components/ncTable/sections/CustomTable.vue +++ b/src/shared/components/ncTable/sections/CustomTable.vue @@ -38,12 +38,12 @@