Skip to content

Commit

Permalink
Merge pull request #982 from nextcloud/renovate/nextcloud-vue-8.x
Browse files Browse the repository at this point in the history
fix(deps): update dependency @nextcloud/vue to v8
  • Loading branch information
max-nextcloud authored Dec 29, 2023
2 parents 744f3c8 + 24ec72a commit 17b2bab
Show file tree
Hide file tree
Showing 21 changed files with 227 additions and 251 deletions.
28 changes: 15 additions & 13 deletions cypress/e2e/collective-settings.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,10 @@
*/

describe('Collective settings', function() {
before(function() {
cy.loginAs('bob')
cy.deleteCollective('Change me now')
cy.deleteAndSeedCollective('Change me')
})

beforeEach(function() {
cy.loginAs('bob')
cy.deleteAndSeedCollective('Change me')
cy.visit('apps/collectives')
})

Expand Down Expand Up @@ -64,6 +60,11 @@ describe('Collective settings', function() {
})

describe('rename collective', function() {

beforeEach(function() {
cy.deleteCollective('Change me now')
})

it('Allows to rename the collective', function() {
cy.openCollectiveMenu('Change me')
cy.clickMenuButton('Settings')
Expand All @@ -72,45 +73,46 @@ describe('Collective settings', function() {
cy.get('.collectives_list_item')
.should('contain', 'Change me now')
})

})

describe('change edit permissions', function() {
it('Allows to change editing permissions', function() {
cy.openCollectiveMenu('Change me now')
cy.openCollectiveMenu('Change me')
cy.clickMenuButton('Settings')
cy.get('div.permissions-input-edit > :first-child > .checkbox-radio-switch__label')
cy.get('.permissions-input-edit').contains('Admins only')
.click()
cy.get('div.toast-success').should('contain', 'Editing permissions updated')
})
})

describe('change share permissions', function() {
it('Allows to change sharing permissions', function() {
cy.openCollectiveMenu('Change me now')
cy.openCollectiveMenu('Change me')
cy.clickMenuButton('Settings')
cy.get('div.permissions-input-share > :first-child > .checkbox-radio-switch__label')
cy.get('.permissions-input-share').contains('Admins only')
.click()
cy.get('div.toast-success').should('contain', 'Sharing permissions updated')
})
})

describe('change page mode', function() {
it('Allows to change page mode', function() {
cy.openCollectiveMenu('Change me now')
cy.openCollectiveMenu('Change me')
cy.clickMenuButton('Settings')
cy.get('a.navigation-list__link')
.contains('Page settings')
.click()
cy.get('div.edit-mode > :last-child > .checkbox-radio-switch__label')
cy.get('.edit-mode').contains('Edit')
.click()
cy.get('div.toast-success').should('contain', 'Default page mode updated')
})
})

describe('open settings from landing page actions', function() {
it('Allows to open settings from landing page actions', function() {
cy.openCollective('Change me now')
cy.openPageMenu('Change me now')
cy.openCollective('Change me')
cy.openPageMenu('Change me')
cy.clickMenuButton('Settings')
cy.get('div.permissions-input-edit')
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/page-details.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe('Page details', function() {
cy.openPage('Day 1')
cy.wait('@textCreateSession')
cy.get('button.action-item .icon-menu-sidebar').click()
cy.get('a#backlinks').click()
cy.get('#tab-button-backlinks').click()
cy.get('.app-sidebar-tabs__content').should('contain', 'Day 2')
})
})
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/page-share.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('Collective Share', function() {
cy.openCollective('Share me')
cy.openPage('Sharepage')
cy.get('button.action-item .icon-menu-sidebar').click()
cy.get('a#sharing').click()
cy.get('#tab-button-sharing').click()
cy.intercept('POST', '**/_api/*/_pages/*/share').as('createShare')
cy.get('.sharing-entry button.new-share-link')
.click()
Expand Down Expand Up @@ -92,7 +92,7 @@ describe('Collective Share', function() {
cy.openCollective('Share me')
cy.openPage('Sharepage')
cy.get('button.action-item .icon-menu-sidebar').click()
cy.get('a#sharing').click()
cy.get('#tab-button-sharing').click()
cy.get('.sharing-entry .share-select')
.click()
cy.intercept('PUT', '**/_api/*/_pages/*/share/*').as('updateShare')
Expand All @@ -110,7 +110,7 @@ describe('Collective Share', function() {
cy.openCollective('Share me')
cy.openPage('Sharepage')
cy.get('button.action-item .icon-menu-sidebar').click()
cy.get('a#sharing').click()
cy.get('#tab-button-sharing').click()
cy.get('.sharing-entry__actions')
.click()
cy.intercept('DELETE', '**/_api/*/_pages/*/share/*').as('deleteShare')
Expand Down
Loading

0 comments on commit 17b2bab

Please sign in to comment.