diff --git a/ts/test/automation/delete_account.spec.ts b/ts/test/automation/delete_account.spec.ts index 60716aca6..0ec9c27aa 100644 --- a/ts/test/automation/delete_account.spec.ts +++ b/ts/test/automation/delete_account.spec.ts @@ -6,14 +6,8 @@ import { openApp } from './setup/open'; import { createContact } from './utilities/create_contact'; import { sendNewMessage } from './utilities/send_message'; import { - clickOnElement, - clickOnMatchingText, - clickOnTestIdWithText, - hasElementBeenDeleted, - hasTextElementBeenDeleted, - typeIntoInput, - waitForElement, - waitForLoadingAnimationToFinish, + clickOnElement, clickOnMatchingText, clickOnTestIdWithText, hasElementBeenDeleted, hasTextElementBeenDeleted, typeIntoInput, waitForElement, + waitForLoadingAnimationToFinish } from './utilities/utils'; // tslint:disable: no-console @@ -117,5 +111,10 @@ test('Delete account from device', async () => { userB.userName ); + await hasElementBeenDeleted(restoringWindow, "data-testid", "conversation-list-item") + + await clickOnTestIdWithText(restoringWindow, 'new-conversation-button'); // Expect contacts list to be empty + + await hasTextElementBeenDeleted(restoringWindow, "contact") await forceCloseAllWindows(restoringWindows); }); diff --git a/ts/test/automation/message_checks.spec.ts b/ts/test/automation/message_checks.spec.ts index 3079210b7..de58ba060 100644 --- a/ts/test/automation/message_checks.spec.ts +++ b/ts/test/automation/message_checks.spec.ts @@ -10,14 +10,13 @@ import { clickOnElement, clickOnMatchingText, clickOnTestIdWithText, - hasTextElementBeenDeleted, hasTextElementBeenDeletedNew, measureSendingTime, typeIntoInput, waitForLoadingAnimationToFinish, waitForMatchingText, waitForTestIdWithText, - waitForTextMessage, + waitForTextMessage } from './utilities/utils';