-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 2574-add-only-encrypted-emails-filter
- Loading branch information
Showing
14 changed files
with
132 additions
and
11 deletions.
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
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
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
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
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
43 changes: 43 additions & 0 deletions
43
appium/tests/specs/mock/composeEmail/CheckEmailSignature.spec.ts
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,43 @@ | ||
import { MockApi } from 'api-mocks/mock'; | ||
import { MockApiConfig } from 'api-mocks/mock-config'; | ||
import { SplashScreen } from '../../../screenobjects/all-screens'; | ||
import MailFolderScreen from '../../../screenobjects/mail-folder.screen'; | ||
import NewMessageScreen from '../../../screenobjects/new-message.screen'; | ||
import SetupKeyScreen from '../../../screenobjects/setup-key.screen'; | ||
|
||
describe('SETUP: ', () => { | ||
it('check if signature is added correctly', async () => { | ||
const mockApi = new MockApi(); | ||
|
||
const aliasEmail = '[email protected]'; | ||
mockApi.fesConfig = MockApiConfig.defaultEnterpriseFesConfiguration; | ||
mockApi.ekmConfig = MockApiConfig.defaultEnterpriseEkmConfiguration; | ||
mockApi.addGoogleAccount('[email protected]', { | ||
signature: 'Test primary signature', | ||
aliases: [ | ||
{ | ||
sendAsEmail: aliasEmail, | ||
displayName: 'Demo Alias', | ||
replyToAddress: aliasEmail, | ||
signature: 'Test alias signature', | ||
isDefault: false, | ||
isPrimary: false, | ||
treatAsAlias: false, | ||
verificationStatus: 'accepted', | ||
}, | ||
], | ||
}); | ||
|
||
await mockApi.withMockedApis(async () => { | ||
await SplashScreen.mockLogin(); | ||
await SetupKeyScreen.setPassPhrase(); | ||
await MailFolderScreen.checkInboxScreen(); | ||
await MailFolderScreen.clickCreateEmail(); | ||
await NewMessageScreen.checkComposeMessageText('Test primary signature'); | ||
|
||
// Change alias and check if signature changes correctly | ||
await NewMessageScreen.changeFromEmail(aliasEmail); | ||
await NewMessageScreen.checkComposeMessageText('Test alias signature'); | ||
}); | ||
}); | ||
}); |