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', () => {
});
describe('click on neuer Vorgang toggle', () => {
it('should have initial unchecked toggle', () => {
isNotChecked(userSettings.getEmailBenachrichtigungForNewVorgang().getToggle());
it('should have initial checked toggle', () => {
isChecked(userSettings.getEmailBenachrichtigungForNewVorgang().getToggle());
});
it('should switch toggle status', () => {
userSettings.getEmailBenachrichtigungForNewVorgang().getToggle().click();
isChecked(userSettings.getEmailBenachrichtigungForNewVorgang().getToggle());
isNotChecked(userSettings.getEmailBenachrichtigungForNewVorgang().getToggle());
});
it('should be loaded after page reload', () => {
reload();
userSettings.getRoot().click();
isChecked(userSettings.getEmailBenachrichtigungForNewVorgang().getToggle());
isNotChecked(userSettings.getEmailBenachrichtigungForNewVorgang().getToggle());
});
});
describe('click on neue nachricht antragsteller toggle', () => {
it('should have initial unchecked toggle', () => {
isNotChecked(userSettings.getEmailBenachrichtigungForPostfachNachrichtFromAntragsteller().getToggle());
it('should have initial checked toggle', () => {
isChecked(userSettings.getEmailBenachrichtigungForPostfachNachrichtFromAntragsteller().getToggle());
});
it('should switch toggle status', () => {
userSettings.getEmailBenachrichtigungForPostfachNachrichtFromAntragsteller().getToggle().click();
isChecked(userSettings.getEmailBenachrichtigungForPostfachNachrichtFromAntragsteller().getToggle());
isNotChecked(userSettings.getEmailBenachrichtigungForPostfachNachrichtFromAntragsteller().getToggle());
});
it('should be loaded after page reload', () => {
reload();
userSettings.getRoot().click();
isChecked(userSettings.getEmailBenachrichtigungForPostfachNachrichtFromAntragsteller().getToggle());
isNotChecked(userSettings.getEmailBenachrichtigungForPostfachNachrichtFromAntragsteller().getToggle());
});
});
describe('click on vorgang mir zugewiesen toggle', () => {
it('should have initial unchecked toggle', () => {
isNotChecked(userSettings.getEmailBenachrichtigungForVorgangAssignedToUser().getToggle());
it('should have initial checked toggle', () => {
isChecked(userSettings.getEmailBenachrichtigungForVorgangAssignedToUser().getToggle());
});
it('should switch toggle status', () => {
userSettings.getEmailBenachrichtigungForVorgangAssignedToUser().getToggle().click();
isChecked(userSettings.getEmailBenachrichtigungForVorgangAssignedToUser().getToggle());
isNotChecked(userSettings.getEmailBenachrichtigungForVorgangAssignedToUser().getToggle());
});
it('should be loaded after page reload', () => {
reload();
userSettings.getRoot().click();
isChecked(userSettings.getEmailBenachrichtigungForVorgangAssignedToUser().getToggle());
isNotChecked(userSettings.getEmailBenachrichtigungForVorgangAssignedToUser().getToggle());
});
});
describe('click on faellige wiedervorlage toggle', () => {
it('should have initial unchecked toggle', () => {
isNotChecked(userSettings.getEmailBenachrichtigungForWiedervorlageDueToday().getToggle());
it('should have initial checked toggle', () => {
isChecked(userSettings.getEmailBenachrichtigungForWiedervorlageDueToday().getToggle());
});
it('should switch toggle status', () => {
userSettings.getEmailBenachrichtigungForWiedervorlageDueToday().getToggle().click();
isChecked(userSettings.getEmailBenachrichtigungForWiedervorlageDueToday().getToggle());
isNotChecked(userSettings.getEmailBenachrichtigungForWiedervorlageDueToday().getToggle());
});
it('should be loaded after page reload', () => {
reload();
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