test: limit app to group

Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev>
This commit is contained in:
Elizabeth Danzberger 2026-01-23 16:53:20 -05:00
parent 8e1d305d5f
commit a5bfe3d3bb
No known key found for this signature in database
GPG key ID: 6B466A21DF5E753C

View file

@ -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