Skip to content

Commit

Permalink
Merge pull request #923 from nextcloud/feature/noid/update-vue-to-7
Browse files Browse the repository at this point in the history
Bump @nextcloud/vue to 7 beta
  • Loading branch information
nickvergessen authored Sep 13, 2022
2 parents 895db54 + 41ac69c commit f97620e
Show file tree
Hide file tree
Showing 23 changed files with 256 additions and 396 deletions.
44 changes: 25 additions & 19 deletions cypress/integration/settings.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ describe('Check that user\'s settings survive a reload', () => {
})

it('Form survive a reload', () => {
cy.get("#app-content input[type='checkbox']").uncheck({force: true}).should('not.be.checked')
cy.get("#app-content input[type='checkbox']").uncheck({ force: true }).should('not.be.checked')

cy.reload()

cy.get("#app-content input[type='checkbox']").uncheck({force: true}).should('not.be.checked')
cy.get("#app-content input[type='checkbox']").uncheck({ force: true }).should('not.be.checked')

cy.get("#file_changed_notification").check({force: true})
cy.get("#file_changed_notification").check({ force: true })
cy.contains("A calendar was modified").click()
cy.contains("Comments for files").click()
cy.contains("Your password or email was modified").click()
Expand Down Expand Up @@ -95,21 +95,27 @@ describe('Check that user\'s settings survive a reload', () => {
})

it('Activity summary survive a reload', () => {
let input = cy.get("#app-content").contains("Send daily activity summary in the morning").parentsUntil('.settings-section').children('input')

input.check({force: true})
input.should('be.checked')

cy.reload()
input = cy.get("#app-content").contains("Send daily activity summary in the morning").parentsUntil('.settings-section').children('input')

input.should('be.checked')

input.uncheck({force: true})

cy.reload()
input = cy.get("#app-content").contains("Send daily activity summary in the morning").parentsUntil('.settings-section').children('input')

input.should('not.be.checked')
cy.intercept({ method: 'POST', url: '**/activity/settings' }).as("apiCall");

cy.get("#app-content")
.contains("Send daily activity summary in the morning")
.find('input')
.check({ force: true })
.should('be.checked')
.wait('@apiCall')
.reload()

cy.get("#app-content")
.contains("Send daily activity summary in the morning")
.find('input')
.should('be.checked')
.uncheck({ force: true })
.wait('@apiCall')
.reload()

cy.get("#app-content")
.contains("Send daily activity summary in the morning")
.find('input')
.should('not.be.checked')
})
})
4 changes: 1 addition & 3 deletions cypress/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,4 @@
*
*/

const randHash = () => Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 10)

export default { randHash }
export const randHash = () => Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 10)
4 changes: 2 additions & 2 deletions js/activity-adminSettings.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/activity-adminSettings.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ object-assign
* @license MIT
*/

/*! For license information please see CheckboxRadioSwitch.js.LICENSE.txt */
/*! For license information please see NcCheckboxRadioSwitch.js.LICENSE.txt */

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

Expand Down
2 changes: 1 addition & 1 deletion js/activity-adminSettings.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/activity-dashboard.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/activity-dashboard.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/activity-personalSettings.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/activity-personalSettings.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ object-assign
* @license MIT
*/

/*! For license information please see CheckboxRadioSwitch.js.LICENSE.txt */
/*! For license information please see NcCheckboxRadioSwitch.js.LICENSE.txt */

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

Expand Down
2 changes: 1 addition & 1 deletion js/activity-personalSettings.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/activity-sidebar.js

Large diffs are not rendered by default.

41 changes: 13 additions & 28 deletions js/activity-sidebar.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,21 @@ object-assign
* Licensed under the MIT License.
*/

/*! For license information please see Avatar.js.LICENSE.txt */
/*!
* focus-trap 7.0.0
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/

/*! For license information please see Tooltip.js.LICENSE.txt */
/*!
* tabbable 6.0.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/

/*! For license information please see NcAvatar.js.LICENSE.txt */

/*! For license information please see UserBubble.js.LICENSE.txt */
/*! For license information please see NcUserBubble.js.LICENSE.txt */

/*! For license information please see Tooltip.js.LICENSE.txt */

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

Expand Down Expand Up @@ -78,31 +88,6 @@ object-assign
*
*/

/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

//! authors : Tim Wood, Iskren Chernev, Moment.js contributors

//! license : MIT
Expand Down
2 changes: 1 addition & 1 deletion js/activity-sidebar.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit f97620e

Please sign in to comment.