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.
		
		
		
		
		
			
		
			
				
	
	
		
			35 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			35 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			TypeScript
		
	
| import commonPage from './common.page';
 | |
| 
 | |
| export = {
 | |
|   registrationTabSignIn:
 | |
|     '//div[contains(string(), "Sign In")][contains(@class, "session-registration__tab")][contains(@role, "tab")]',
 | |
| 
 | |
|   // create new account
 | |
|   createSessionIDButton: commonPage.divRoleButtonWithText('Create Session ID'),
 | |
|   continueButton: commonPage.divRoleButtonWithText('Continue'),
 | |
|   textareaGeneratedPubkey: '//textarea[contains(@class, "session-id-editable-textarea")]',
 | |
|   getStartedButton: commonPage.divRoleButtonWithText('Get started'),
 | |
| 
 | |
|   // restore from seed
 | |
|   restoreFromSeedMode: commonPage.divRoleButtonWithText('Restore From Recovery'),
 | |
| 
 | |
|   recoveryPhraseInput: commonPage.inputWithPlaceholder('Enter Recovery Phrase'),
 | |
|   displayNameInput: commonPage.inputWithPlaceholder('Enter a display name'),
 | |
|   passwordInput: commonPage.inputWithPlaceholder('Enter password (optional)'),
 | |
|   continueSessionButton: commonPage.divRoleButtonWithText('Continue Your Session'),
 | |
|   conversationListContainer: commonPage.divWithClass('module-conversations-list-content'),
 | |
| 
 | |
|   // device linking
 | |
|   linkDeviceMode: commonPage.divRoleButtonWithText('Link Device to Existing Session ID'),
 | |
|   textareaLinkDevicePubkey: commonPage.textAreaWithPlaceholder('Enter your Session ID'),
 | |
|   linkDeviceTriggerButton: commonPage.divRoleButtonWithText('Link Device'),
 | |
|   toastWrapper: '//*[contains(@class,"session-toast-wrapper")]',
 | |
|   secretWordsText:
 | |
|     '//div[contains(@class,"session-registration__content__secret-words")]/div[contains(@class,"subtle")]',
 | |
|   linkWithThisDevice: commonPage.objWithClassAndText(
 | |
|     'h4',
 | |
|     'device-pairing-dialog__desc',
 | |
|     'Allow linking with this device?'
 | |
|   ),
 | |
| };
 |