-
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.
Browse files
Browse the repository at this point in the history
* wip * fix: remove html tags * fix: signature change * feat: added ui test * fix: sender * fix: ui test * temp: increase timeout * temp: incvrease timeout * Revert "temp: incvrease timeout" This reverts commit b9395bd. * Revert "temp: increase timeout" This reverts commit 333b342. * fix: temporarilly disable ui tests * fix: semaphoreci * fix: semaphoreci * fix: pr reviews
- 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'); | ||
}); | ||
}); | ||
}); |