Adds data-testid to loading-animation, microphone recording button, recording permissions button, stop recording button, consolidates tests into user actions test, adds media to fixtures folder, updates linked device tests with avatar change, username change and group tests. Adds tests for messaging, sending image, video, document, gif and link with preview. Also updates reply message functionality to wait for loading animation
2 years ago
|
|
|
import { sleepFor } from '../../session/utils/Promise';
|
|
|
|
import { newUser } from './setup/new_user';
|
|
|
|
import {
|
|
|
|
clickOnMatchingText,
|
|
|
|
clickOnTestIdWithText,
|
|
|
|
waitForTestIdWithText,
|
|
|
|
} from './utilities/utils';
|
|
|
|
import { sessionTestOneWindow } from './setup/sessionTest';
|
|
|
|
|
|
|
|
sessionTestOneWindow('Create User', async ([window]) => {
|
|
|
|
// // Create User
|
|
|
|
const userA = await newUser(window, 'userA');
|
|
|
|
// Open profile tab
|
|
|
|
await clickOnTestIdWithText(window, 'leftpane-primary-avatar');
|
|
|
|
await sleepFor(100, true);
|
|
|
|
// check username matches
|
|
|
|
await waitForTestIdWithText(window, 'your-profile-name', userA.userName);
|
|
|
|
// check session id matches
|
|
|
|
await waitForTestIdWithText(window, 'your-session-id', userA.sessionid);
|
|
|
|
|
|
|
|
// exit profile module
|
|
|
|
await window.click('.session-icon-button.small');
|
|
|
|
// go to settings section
|
|
|
|
await clickOnTestIdWithText(window, 'settings-section');
|
|
|
|
// check recovery phrase matches
|
|
|
|
await clickOnMatchingText(window, 'Recovery Phrase');
|
|
|
|
await waitForTestIdWithText(window, 'recovery-phrase-seed-modal', userA.recoveryPhrase);
|
|
|
|
// Exit profile module
|
|
|
|
await window.click('.session-icon-button.small');
|
|
|
|
});
|