You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
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');
|
|
});
|