mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
test: limit app to group
Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev>
This commit is contained in:
parent
8e1d305d5f
commit
a5bfe3d3bb
1 changed files with 26 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue