Skip to content

Commit

Permalink
fixing address book e2e (#3774)
Browse files Browse the repository at this point in the history
* edit contact test action wonk on bitrise

* removing double tap by text
  • Loading branch information
cortisiko authored Feb 17, 2022
1 parent 1ad83bf commit 8c362c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/pages/Drawer/Settings/Contacts/AddContactView.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class AddContactView {
}

static async tapEditContactCTA() {
await TestHelpers.doubleTapByText('Edit contact'); // edit CTA button after you make changes to a contact
await TestHelpers.tapByText('Edit contact'); // edit CTA button after you make changes to a contact
}

static async tapBackButton() {
Expand Down
9 changes: 7 additions & 2 deletions e2e/specs/addressbook-tests.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,15 @@ describe('Addressbook Tests', () => {

await AddContactView.tapEditButton();
await AddContactView.typeInName('Moon'); // Change name from Myth to Moon

await AddContactView.tapEditContactCTA();

await ContactsView.isVisible();
// because tapping edit contact is slow to load on bitrise
try {
await ContactsView.isVisible();
} catch {
await AddContactView.tapEditContactCTA();
await ContactsView.isVisible();
}
await ContactsView.isContactAliasVisible('Moon'); // Check that Ibrahim address is saved in the address book
await ContactsView.isContactAliasNotVisible('Myth'); // Ensure Myth is not visible
});
Expand Down

0 comments on commit 8c362c3

Please sign in to comment.