delete account from stash

pull/2786/head
Emily 2 years ago
parent 0e588cf045
commit a00bca03a7

@ -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);
});

@ -10,14 +10,13 @@ import {
clickOnElement,
clickOnMatchingText,
clickOnTestIdWithText,
hasTextElementBeenDeleted,
hasTextElementBeenDeletedNew,
measureSendingTime,
typeIntoInput,
waitForLoadingAnimationToFinish,
waitForMatchingText,
waitForTestIdWithText,
waitForTextMessage,
waitForTextMessage
} from './utilities/utils';

Loading…
Cancel
Save