Skip to content

test(accounts) MPT-19251 MPT-17473 account details e2e#375

Open
bpolgar-swo wants to merge 2 commits into
mainfrom
feature/MPT-19251-MPT-17473/account-details-e2e
Open

test(accounts) MPT-19251 MPT-17473 account details e2e#375
bpolgar-swo wants to merge 2 commits into
mainfrom
feature/MPT-19251-MPT-17473/account-details-e2e

Conversation

@bpolgar-swo
Copy link
Copy Markdown
Contributor

E2E tests: Account Details screen (MPT-19251, MPT-17473)

Adds end-to-end test coverage for the Account Details screen, accessible from the Clients list under the More menu (Operations role only).

Changes

app/test/utils/api-client.js
Added four new methods to opsApiClient for backend data validation:

  • getAccountById(accountId) — fetches account details including audit and groups
  • getAccountBuyers(accountId, options) — fetches buyers scoped to a given account
  • getAccountLicensees(accountId, options) — fetches licensees scoped to a given account
  • getAccountUsers(accountId, options) — fetches users for a given account

app/test/pageobjects/account-details.page.js (new file)
Page Object Model for the Account Details screen. Extends DetailsPage with:

  • tapSubList(name) / hasSubList(name) — scroll-aware navigation into Buyers, Licensees, and Users sublists
  • getAllAccountDetails() — extracts all visible detail fields after scrolling to top
  • getAddressDetails() — extracts headquarters address fields
  • getAccountName() — reads the account name from the content header

app/test/specs/account-details.e2e.js (new file)
30 tests across 5 groups:

  • Page Structure — header title, account name, ID format (ACC-XXXX-XXXX), status badge and value, and all detail fields (Service level, Company website, Company description, Technical support email, PYC ID)
  • Address Section — Headquarters address header, State, and Country fields
  • Sublists Navigation — verifies Buyers, Licensees, and Users sublist items are present and navigable (tap → verify list loads → go back)
  • Sublists API Data Validation — cross-references visible item counts and IDs against the backend API for all three sublists
  • API Data Validation — validates account ID, status, name, and PYC ID against the API response

app/wdio.conf.js

  • Added account-details.e2e.js to the clients suite
  • Added new standalone accountDetails suite
  • Added account-details.e2e.js to the opsScoped combined suite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant