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 { createContact } from './utilities/create_contact';
import { sendNewMessage } from './utilities/send_message'; import { sendNewMessage } from './utilities/send_message';
import { import {
clickOnElement, clickOnElement, clickOnMatchingText, clickOnTestIdWithText, hasElementBeenDeleted, hasTextElementBeenDeleted, typeIntoInput, waitForElement,
clickOnMatchingText, waitForLoadingAnimationToFinish
clickOnTestIdWithText,
hasElementBeenDeleted,
hasTextElementBeenDeleted,
typeIntoInput,
waitForElement,
waitForLoadingAnimationToFinish,
} from './utilities/utils'; } from './utilities/utils';
// tslint:disable: no-console // tslint:disable: no-console
@ -117,5 +111,10 @@ test('Delete account from device', async () => {
userB.userName 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); await forceCloseAllWindows(restoringWindows);
}); });

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

Loading…
Cancel
Save