Profile Tests#

Update Profile#

This codeblock can be applied to sections that look like the Profile Information section.

updateUserProfile(page, options, address, billingEmail, city, cityAlt, companyEmail, name, phoneNumber, profileLinkName, screenshotPrefix, state1, state2)#

Updates the user profile page with provided values.

Navigates to the profile page, fills out form fields, selects states, and saves changes. All parameters are optional and default to their usual test values.

Arguments:
  • page (Page) – The Playwright Page object.

  • options (UpdateUserProfileOptions) – Optional profile values.

  • address (string) – Address to fill in.

  • billingEmail (string) – Billing email address.

  • city (string) – City value.

  • cityAlt (string) – Alternate city field.

  • companyEmail (string) – Company email address.

  • name (string) – Name to set in the profile.

  • phoneNumber (string) – Phone number.

  • profileLinkName (string) – The label for the Profile link.

  • screenshotPrefix (string) – Prefix for screenshot filenames.

  • state1 (string) – First state to select.

  • state2 (string) – Second state to select.

Returns:

Promise – Resolves when the profile update flow is complete.

Update Profile: List of References#

Below contains a complete list of where this is used: