-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue #1138 added new scenarios for sending email to accounts with ex…
…pired/revoked public key (#1141) * added new scenarios for sending email for accounts with expired/revoked public key * merged 2 scenarios into one, updated tests Co-authored-by: Dmitry Sotnikov <dmytro.s@accel-labs.com>
- Loading branch information
1 parent
4162138
commit bd498cd
Showing
2 changed files
with
55 additions
and
1 deletion.
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
44 changes: 44 additions & 0 deletions
44
appium/tests/specs/composeEmail/SendEmailToRecipientWithExpiredAndRevokedPublicKeys.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,44 @@ | ||
import { | ||
SplashScreen, | ||
SetupKeyScreen, | ||
MailFolderScreen, | ||
NewMessageScreen | ||
} from '../../screenobjects/all-screens'; | ||
|
||
import { CommonData } from '../../data'; | ||
|
||
describe('COMPOSE EMAIL: ', () => { | ||
|
||
it('sending message to user with expired/revoked public key produces modal', async () => { | ||
|
||
const expiredPublicKey = CommonData.recipientWithExpiredPublicKey.email; | ||
const revokedpublicKey = CommonData.recipientWithRevokedPublicKey.email; | ||
const emailSubject = CommonData.simpleEmail.subject; | ||
const emailText = CommonData.simpleEmail.message; | ||
const expiredPublicKeyError = CommonData.errors.expiredPublicKey; | ||
const revokedPublicKeyError = CommonData.errors.revokedPublicKey; | ||
|
||
|
||
await SplashScreen.login(); | ||
await SetupKeyScreen.setPassPhrase(); | ||
await MailFolderScreen.checkInboxScreen(); | ||
|
||
await MailFolderScreen.clickCreateEmail(); | ||
await NewMessageScreen.composeEmail(expiredPublicKey, emailSubject, emailText); | ||
await NewMessageScreen.checkFilledComposeEmailInfo(expiredPublicKey, emailSubject, emailText); | ||
await NewMessageScreen.clickSendButton(); | ||
|
||
await NewMessageScreen.checkError(expiredPublicKeyError); | ||
|
||
await NewMessageScreen.clickOkButtonOnError(); | ||
await NewMessageScreen.clickBackButton(); | ||
await MailFolderScreen.checkInboxScreen(); | ||
|
||
await MailFolderScreen.clickCreateEmail(); | ||
await NewMessageScreen.composeEmail(revokedpublicKey, emailSubject, emailText); | ||
await NewMessageScreen.checkFilledComposeEmailInfo(revokedpublicKey, emailSubject, emailText); | ||
await NewMessageScreen.clickSendButton(); | ||
|
||
await NewMessageScreen.checkError(revokedPublicKeyError); | ||
}); | ||
}); |