Skip to content

Commit

Permalink
fix; test
Browse files Browse the repository at this point in the history
  • Loading branch information
ioanmo226 committed Oct 29, 2024
1 parent bce441b commit 50a9524
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
3 changes: 2 additions & 1 deletion appium/tests/screenobjects/email.screen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,10 @@ class EmailScreen extends BaseScreen {

clickToggleQuoteButton = async (index: number) => {
const element = await $(`~aid-message-${index}-quote-toggle`);
await TouchHelper.scrollDown();
if (await element.isDisplayed()) {
await ElementHelper.waitAndClick(element);
await TouchHelper.scrollDownToElement(element);
await TouchHelper.scrollDown();
}
};

Expand Down
8 changes: 1 addition & 7 deletions appium/tests/screenobjects/refresh-key.screen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,7 @@ class RefreshKeyScreen extends BaseScreen {
};

cancelRefresh = async () => {
try {
await ElementHelper.waitAndClick(await this.cancelButton);
} catch {
// For some reason clicking cancel button with aid-cancel-button identifier doesn't work. Try to click with click text identifier
// https://flowcrypt.semaphoreci.com/jobs/fdde00a1-33b1-4df9-a9b8-49d546c2ef79/summary?report_id=4ae71336-e44b-39bf-b9d2-752e234818a5&test_id=8e5e69c0-6bc7-316b-ab4d-7b75d419353e
await ElementHelper.waitAndClick(await $('//*[@name="Cancel"]'));
}
await driver.dismissAlert();
};

clickOkButton = async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ describe('SETUP: ', () => {
await RefreshKeyScreen.clickOkButton();
await BaseScreen.checkModalMessage(CommonData.refreshingKeysFromEkm.wrongPassPhrase);
await RefreshKeyScreen.clickSystemOkButton();
await browser.pause(500);
await RefreshKeyScreen.cancelRefresh();
await KeysScreen.openScreenFromSideMenu();
await KeysScreen.checkKeysScreen([ekmKeySamples.key0]);
Expand Down

0 comments on commit 50a9524

Please sign in to comment.