diff --git a/cypress/e2e/settings/apps.cy.ts b/cypress/e2e/settings/apps.cy.ts index 0df073271ef..6055cbf6ba1 100644 --- a/cypress/e2e/settings/apps.cy.ts +++ b/cypress/e2e/settings/apps.cy.ts @@ -142,6 +142,32 @@ describe('Settings: App management', { testIsolation: true }, () => { cy.get('#app-sidebar-vue').contains(/Version \d+\.\d+\.\d+/).should('be.visible') }) + it('Limit app usage to group', () => { + // When I open the "Active apps" section + cy.get('#app-category-enabled a') + .should('contain', 'Active apps') + .click({ force: true }) + // Then I see that the current section is "Active apps" + cy.url().should('match', /settings\/apps\/enabled$/) + cy.get('#app-category-enabled').find('.active').should('exist') + // Then I select the app + cy.get('#apps-list') + .should('exist') + .contains('tr', 'Dashboard', { timeout: 10000 }) + .click() + // Then I enable "limit app to group" + cy.get('[for="groups_enable_dashboard"]').click() + // Then I select a group + cy.get('#limitToGroups').click() + cy.get('ul[role="listbox"]') + .find('span') + .contains('admin') + .click() + cy.get('span.name-parts__first') + .contains('admin') + .should('be.visible') + }) + /* * TODO: Improve testing with app store as external API * The following scenarios require the files_antivirus and calendar app