Skip to content

Commit

Permalink
improve ui test stability
Browse files Browse the repository at this point in the history
  • Loading branch information
sosnovsky committed Jan 21, 2022
1 parent 13ed9b8 commit 5c9796d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion appium/tests/screenobjects/new-message.screen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class NewMessageScreen extends BaseScreen {

setComposeSecurityMessage = async (message: string) => {
await browser.pause(500);
await (await this.composeSecurityMessage).setValue(message);
await ElementHelper.waitClickAndType(await this.composeSecurityMessage, message);
};

filledSubject = async (subject: string) => {
Expand Down Expand Up @@ -200,6 +200,7 @@ class NewMessageScreen extends BaseScreen {
}

checkPasswordCell = async (text: string) => {
await ElementHelper.waitElementVisible(await this.passwordCell);
await ElementHelper.checkStaticText(await this.passwordCell, text);
}

Expand Down

0 comments on commit 5c9796d

Please sign in to comment.