Skip to content
Snippets Groups Projects
Commit 8d3e895f authored by OZGCloud's avatar OZGCloud
Browse files

Merge pull request 'switch tests for user setting toggles' (#826) from...

Merge pull request 'switch tests for user setting toggles' (#826) from E2E-fix-mail-settings into master

Reviewed-on: https://git.ozg-sh.de/ozgcloud-app/alfa/pulls/826


Reviewed-by: default avatarOZGCloud <ozgcloud@mgm-tp.com>
parents 8136fdc9 831ef817
No related branches found
No related tags found
No related merge requests found
...@@ -80,78 +80,78 @@ describe('User Settings', () => { ...@@ -80,78 +80,78 @@ describe('User Settings', () => {
}); });
describe('click on neuer Vorgang toggle', () => { describe('click on neuer Vorgang toggle', () => {
it('should have initial unchecked toggle', () => { it('should have initial checked toggle', () => {
isNotChecked(userSettings.getEmailBenachrichtigungForNewVorgang().getToggle()); isChecked(userSettings.getEmailBenachrichtigungForNewVorgang().getToggle());
}); });
it('should switch toggle status', () => { it('should switch toggle status', () => {
userSettings.getEmailBenachrichtigungForNewVorgang().getToggle().click(); userSettings.getEmailBenachrichtigungForNewVorgang().getToggle().click();
isChecked(userSettings.getEmailBenachrichtigungForNewVorgang().getToggle()); isNotChecked(userSettings.getEmailBenachrichtigungForNewVorgang().getToggle());
}); });
it('should be loaded after page reload', () => { it('should be loaded after page reload', () => {
reload(); reload();
userSettings.getRoot().click(); userSettings.getRoot().click();
isChecked(userSettings.getEmailBenachrichtigungForNewVorgang().getToggle()); isNotChecked(userSettings.getEmailBenachrichtigungForNewVorgang().getToggle());
}); });
}); });
describe('click on neue nachricht antragsteller toggle', () => { describe('click on neue nachricht antragsteller toggle', () => {
it('should have initial unchecked toggle', () => { it('should have initial checked toggle', () => {
isNotChecked(userSettings.getEmailBenachrichtigungForPostfachNachrichtFromAntragsteller().getToggle()); isChecked(userSettings.getEmailBenachrichtigungForPostfachNachrichtFromAntragsteller().getToggle());
}); });
it('should switch toggle status', () => { it('should switch toggle status', () => {
userSettings.getEmailBenachrichtigungForPostfachNachrichtFromAntragsteller().getToggle().click(); userSettings.getEmailBenachrichtigungForPostfachNachrichtFromAntragsteller().getToggle().click();
isChecked(userSettings.getEmailBenachrichtigungForPostfachNachrichtFromAntragsteller().getToggle()); isNotChecked(userSettings.getEmailBenachrichtigungForPostfachNachrichtFromAntragsteller().getToggle());
}); });
it('should be loaded after page reload', () => { it('should be loaded after page reload', () => {
reload(); reload();
userSettings.getRoot().click(); userSettings.getRoot().click();
isChecked(userSettings.getEmailBenachrichtigungForPostfachNachrichtFromAntragsteller().getToggle()); isNotChecked(userSettings.getEmailBenachrichtigungForPostfachNachrichtFromAntragsteller().getToggle());
}); });
}); });
describe('click on vorgang mir zugewiesen toggle', () => { describe('click on vorgang mir zugewiesen toggle', () => {
it('should have initial unchecked toggle', () => { it('should have initial checked toggle', () => {
isNotChecked(userSettings.getEmailBenachrichtigungForVorgangAssignedToUser().getToggle()); isChecked(userSettings.getEmailBenachrichtigungForVorgangAssignedToUser().getToggle());
}); });
it('should switch toggle status', () => { it('should switch toggle status', () => {
userSettings.getEmailBenachrichtigungForVorgangAssignedToUser().getToggle().click(); userSettings.getEmailBenachrichtigungForVorgangAssignedToUser().getToggle().click();
isChecked(userSettings.getEmailBenachrichtigungForVorgangAssignedToUser().getToggle()); isNotChecked(userSettings.getEmailBenachrichtigungForVorgangAssignedToUser().getToggle());
}); });
it('should be loaded after page reload', () => { it('should be loaded after page reload', () => {
reload(); reload();
userSettings.getRoot().click(); userSettings.getRoot().click();
isChecked(userSettings.getEmailBenachrichtigungForVorgangAssignedToUser().getToggle()); isNotChecked(userSettings.getEmailBenachrichtigungForVorgangAssignedToUser().getToggle());
}); });
}); });
describe('click on faellige wiedervorlage toggle', () => { describe('click on faellige wiedervorlage toggle', () => {
it('should have initial unchecked toggle', () => { it('should have initial checked toggle', () => {
isNotChecked(userSettings.getEmailBenachrichtigungForWiedervorlageDueToday().getToggle()); isChecked(userSettings.getEmailBenachrichtigungForWiedervorlageDueToday().getToggle());
}); });
it('should switch toggle status', () => { it('should switch toggle status', () => {
userSettings.getEmailBenachrichtigungForWiedervorlageDueToday().getToggle().click(); userSettings.getEmailBenachrichtigungForWiedervorlageDueToday().getToggle().click();
isChecked(userSettings.getEmailBenachrichtigungForWiedervorlageDueToday().getToggle()); isNotChecked(userSettings.getEmailBenachrichtigungForWiedervorlageDueToday().getToggle());
}); });
it('should be loaded after page reload', () => { it('should be loaded after page reload', () => {
reload(); reload();
userSettings.getRoot().click(); userSettings.getRoot().click();
isChecked(userSettings.getEmailBenachrichtigungForWiedervorlageDueToday().getToggle()); isNotChecked(userSettings.getEmailBenachrichtigungForWiedervorlageDueToday().getToggle());
}); });
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment