test(accounts) MPT-19251 MPT-17473 account details e2e#375
Open
bpolgar-swo wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.jsAdded four new methods to
opsApiClientfor backend data validation:getAccountById(accountId)— fetches account details including audit and groupsgetAccountBuyers(accountId, options)— fetches buyers scoped to a given accountgetAccountLicensees(accountId, options)— fetches licensees scoped to a given accountgetAccountUsers(accountId, options)— fetches users for a given accountapp/test/pageobjects/account-details.page.js(new file)Page Object Model for the Account Details screen. Extends
DetailsPagewith:tapSubList(name)/hasSubList(name)— scroll-aware navigation into Buyers, Licensees, and Users sublistsgetAllAccountDetails()— extracts all visible detail fields after scrolling to topgetAddressDetails()— extracts headquarters address fieldsgetAccountName()— reads the account name from the content headerapp/test/specs/account-details.e2e.js(new file)30 tests across 5 groups:
ACC-XXXX-XXXX), status badge and value, and all detail fields (Service level, Company website, Company description, Technical support email, PYC ID)app/wdio.conf.jsaccount-details.e2e.jsto theclientssuiteaccountDetailssuiteaccount-details.e2e.jsto theopsScopedcombined suite