-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite the settings in vue #589
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,9 @@ nbproject | |
# vim ex mode | ||
.vimrc | ||
|
||
# vscode | ||
.vscode | ||
|
||
# Mac OS | ||
.DS_Store | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
"projectId": "hx9gqy", | ||
"viewportWidth": 1280, | ||
"viewportHeight": 720 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
/** | ||
* @copyright Copyright (c) 2021 Louis Chemineau <louis@chmn.me> | ||
* | ||
* @author Louis Chemineau <louis@chmn.me> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
|
||
/// <reference types="Cypress" /> | ||
|
||
import { randHash } from '../utils' | ||
const randUser = randHash() | ||
|
||
describe('Check that user\'s settings survive a reload', () => { | ||
before(() => { | ||
cy.nextcloudCreateUser(randUser, 'password') | ||
cy.login(randUser, 'password') | ||
cy.visit('/settings/user/activity') | ||
cy.wait(1000) | ||
}) | ||
|
||
after(() => { | ||
cy.logout() | ||
}) | ||
|
||
it('Form survive a reload', () => { | ||
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("#file_changed_notification").check({force: true}) | ||
cy.contains("A calendar was modified").click() | ||
cy.contains("Other activities").parentsUntil('table').contains("Push").click() | ||
cy.contains("Comments for files").click() | ||
cy.contains("Your password or email was modified").click() | ||
|
||
cy.reload() | ||
|
||
cy.get("#file_favorite_changed_email").should('not.be.checked') | ||
cy.get("#file_favorite_changed_notification").should('not.be.checked') | ||
cy.get("#file_changed_email").should('not.be.checked') | ||
cy.get("#file_changed_notification").should('be.checked') | ||
cy.get("#favorite_email").should('not.be.checked') | ||
cy.get("#favorite_notification").should('not.be.checked') | ||
cy.get("#shared_email").should('not.be.checked') | ||
cy.get("#shared_notification").should('not.be.checked') | ||
cy.get("#remote_share_email").should('not.be.checked') | ||
cy.get("#remote_share_notification").should('not.be.checked') | ||
cy.get("#public_links_email").should('not.be.checked') | ||
cy.get("#public_links_notification").should('not.be.checked') | ||
cy.get("#calendar_email").should('be.checked') | ||
cy.get("#calendar_notification").should('be.checked') | ||
cy.get("#calendar_event_email").should('not.be.checked') | ||
cy.get("#calendar_event_notification").should('not.be.checked') | ||
cy.get("#calendar_todo_email").should('not.be.checked') | ||
cy.get("#calendar_todo_notification").should('not.be.checked') | ||
cy.get("#contacts_email").should('not.be.checked') | ||
cy.get("#contacts_notification").should('not.be.checked') | ||
cy.get("#group_settings_email").should('not.be.checked') | ||
cy.get("#group_settings_notification").should('be.checked') | ||
cy.get("#personal_settings_email").should('not.be.checked') | ||
cy.get("#personal_settings_notification").should('not.be.checked') | ||
cy.get("#security_email").should('not.be.checked') | ||
cy.get("#security_notification").should('be.checked') | ||
cy.get("#comments_email").should('be.checked') | ||
cy.get("#comments_notification").should('be.checked') | ||
cy.get("#systemtags_email").should('not.be.checked') | ||
cy.get("#systemtags_notification").should('be.checked') | ||
}) | ||
|
||
it('Notification frequency survive a reload', () => { | ||
cy.get(".notification-frequency__select").select("Weekly") | ||
|
||
cy.wait(200) | ||
cy.reload() | ||
|
||
cy.get('.notification-frequency__select').find(':selected').contains('Weekly') | ||
cy.get(".notification-frequency__select").select("Hourly") | ||
|
||
cy.wait(200) | ||
cy.reload() | ||
|
||
cy.get('.notification-frequency__select').find(':selected').contains('Hourly') | ||
}) | ||
|
||
it('Activity summary survive a reload', () => { | ||
let input = cy.get("#app-content").contains("Send daily activity summary in the morning").parentsUntil('.settings-section.summary-form').children('input') | ||
|
||
input.check({force: true}) | ||
|
||
cy.reload() | ||
input = cy.get("#app-content").contains("Send daily activity summary in the morning").parentsUntil('.settings-section.summary-form').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.summary-form').children('input') | ||
|
||
input.should('not.be.checked') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed until a new version of nextcloud/eslint-config is released