Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: [POM] migrate Account Custom Name to page object model #27283

Draft
wants to merge 19 commits into
base: develop
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Sep 19, 2024

Description

This pull request migrate account custom name interactions to page object model(POM) pattern, enhancing code maintainability, and improving test reliability. It also includes migration for the test file test/e2e/tests/account/account-custom-name.spec.ts as example

Open in GitHub Codespaces

Related issues

Fixes: #27163

Manual testing steps

Check code readability, make sure tests pass.

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@chloeYue chloeYue self-assigned this Sep 19, 2024
@chloeYue chloeYue added team-extension-platform team-ai AI team (for the Devin AI bot) labels Sep 19, 2024
@chloeYue chloeYue changed the title Draft: Account Custom Name Migration test: Draft: Account Custom Name Migration Sep 19, 2024
Copy link

sonarcloud bot commented Sep 19, 2024

@chloeYue chloeYue changed the title test: Draft: Account Custom Name Migration test: migrate Account Custom Name migration to page object model Sep 19, 2024
@chloeYue chloeYue changed the title test: migrate Account Custom Name migration to page object model test: migrate Account Custom Name to page object model Sep 19, 2024
@chloeYue chloeYue changed the title test: migrate Account Custom Name to page object model test: [POM] migrate Account Custom Name to page object model Sep 19, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [a1e1502]
Page Load Metrics (1873 ± 78 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15792275187115675
domContentLoaded15722257183315172
load15802273187316178
domInteractive18194473919
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

console.log(`Opening account menu`);
await this.driver.clickElement(this.accountMenuButton);
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intended change to remove the redundant openAccountMenu method, we should use the one in header-navbar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-ai AI team (for the Devin AI bot) team-extension-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[POM][Devin] Create page classes for accounts and provide more accounts e2e tests migration examples
2 participants