import ProfileController from 'automation.client.ui/src/controllers/web/profile.controller.js'
ProfileController
Extends:
Controller to perform actions accessible from the My Profile Modal
Constructor Summary
Public Constructor | ||
public |
constructor(args: args) Adds the browser to the controller from the Base Controller constructor. |
Member Summary
Public Members | ||
public |
headerPanel: * |
|
public |
passwordPage: * |
|
public |
profileModal: * |
|
public |
profilePage: * |
|
public |
settingsPage: * |
Method Summary
Public Methods | ||
public |
async cancelEditUserName(name: String) Changes username and cancels. |
|
public |
async changeLang(newLang: String): String Changes language of all text to desired language |
|
public |
async changePassword(currentPassword: String, newPassword: String, confirmPassword: String) Opens page to change password, fills in fields, and updates password. |
|
public |
async getProfileDetails(): Object Gets all relevant information from profile |
|
public |
async getUsername(): String Gets username |
|
public |
async goToMyProfileViaHeader() Navigates to my profile using availability dropdown |
|
public |
async goToMyProfileViaModal() Navigates to my profile using my profile tab on profile modal |
|
public |
async goToSettingsViaHeader() Navigates to settings page using availability dropdown |
|
public |
async goToSettingsViaModal() Navigates to settings using settings tab on profile modal |
|
public |
async passwordUrlExtension(): String Get extension from change password URL |
|
public |
async submitEditUserName(name: String) Changes username and submits. |
Public Constructors
public constructor(args: args) source
Adds the browser to the controller from the Base Controller constructor. This then gets pushed into the various page objects and is ultimately used there to make calls to the actual browser. Creates objects for accessing the Profile Page, Header Panel, and Password Page.
Params:
Name | Type | Attribute | Description |
args | args | Args from client |
Public Members
public headerPanel: * source
public passwordPage: * source
public profileModal: * source
public profilePage: * source
public settingsPage: * source
Public Methods
public async cancelEditUserName(name: String) source
Changes username and cancels.
Params:
Name | Type | Attribute | Description |
name | String | New username with changes made |
public async changeLang(newLang: String): String source
Changes language of all text to desired language
Params:
Name | Type | Attribute | Description |
newLang | String | Language user desires to change to |
public async changePassword(currentPassword: String, newPassword: String, confirmPassword: String) source
Opens page to change password, fills in fields, and updates password.
public async goToMyProfileViaModal() source
Navigates to my profile using my profile tab on profile modal
public async goToSettingsViaModal() source
Navigates to settings using settings tab on profile modal