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.
session-desktop/integration_test/page-objects/registration.page.js

41 lines
1.5 KiB
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

const commonPage = require('./common.page');
module.exports = {
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 other devices Session ID here'
),
linkDeviceTriggerButton: commonPage.divRoleButtonWithText('Link Device'),
toastWrapper: '//*[contains(@class,"session-toast-wrapper")]',
secretToastDescription: '//p[contains(@class, "description")]',
};