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: Fixed artifacts issue due to switching window title #28469

Merged
merged 6 commits into from
Nov 21, 2024

Conversation

hjetpoluru
Copy link
Contributor

@hjetpoluru hjetpoluru commented Nov 14, 2024

Description

This PR addresses the issue where artifacts are not generated when a timeout occurs during the switching window and the dialog does not appear, making it difficult to determine what has happened during the test scenario.

The fix ensures that an error is generated when a timeout occurs and is correctly returned. If the dialog is found, no error is generated. Special thanks to @davidmurdoch for pair programming, understanding the issue and suggesting the fix.

Open in GitHub Codespaces

Related issues

Fixes:
#28116

Manual testing steps

All the artifacts needs to be generated.

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.

@hjetpoluru hjetpoluru added team-extension-platform INVALID-PR-TEMPLATE PR's body doesn't match template area-qa Relating to QA work (Quality Assurance) labels Nov 14, 2024
@hjetpoluru hjetpoluru self-assigned this Nov 14, 2024
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.

@metamaskbot metamaskbot removed the INVALID-PR-TEMPLATE PR's body doesn't match template label Nov 14, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [3b58c8e]
Page Load Metrics (1987 ± 73 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint34922991911386186
domContentLoaded17592213195813967
load17752344198715373
domInteractive30207533718
backgroundConnect795232211
firstReactRender553021225225
getState594352914
initialActions01000
loadScripts12631683145012259
setupStore592202713
uiStartup196029552255249120
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [1aae3e1]
Page Load Metrics (1795 ± 68 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16642240181613967
domContentLoaded16442143177212158
load16502254179514168
domInteractive307644147
backgroundConnect9112262512
firstReactRender553071074823
getState6491194
initialActions01000
loadScripts1200157213108842
setupStore598172411
uiStartup18492598202420398
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [8199f16]
Page Load Metrics (1839 ± 90 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint29124141766388186
domContentLoaded15942309179917081
load16082398183918890
domInteractive13172553517
backgroundConnect992422814
firstReactRender5111493188
getState45418178
initialActions01000
loadScripts11531787133015575
setupStore5519105
uiStartup18172634203019895
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link
Contributor

@HowardBraham HowardBraham left a comment

Choose a reason for hiding this comment

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

I tested the failure on develop and there are no artifacts, but artifacts show up on this branch

@hjetpoluru hjetpoluru marked this pull request as ready for review November 20, 2024 13:28
@hjetpoluru hjetpoluru requested a review from a team as a code owner November 20, 2024 13:28
@hjetpoluru hjetpoluru added this pull request to the merge queue Nov 21, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [cd47698]
Page Load Metrics (1841 ± 72 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23021821755379182
domContentLoaded15542001179712259
load15632181184114972
domInteractive15290637435
backgroundConnect6292456129
firstReactRender442871436933
getState597122010
initialActions01000
loadScripts11341552133211153
setupStore681162110
uiStartup182927072117216104
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Merged via the queue into develop with commit e748576 Nov 21, 2024
75 checks passed
@hjetpoluru hjetpoluru deleted the fix-artifact-issue-28116 branch November 21, 2024 21:53
@github-actions github-actions bot locked and limited conversation to collaborators Nov 21, 2024
@metamaskbot metamaskbot added the release-12.9.0 Issue or pull request that will be included in release 12.9.0 label Nov 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-qa Relating to QA work (Quality Assurance) release-12.9.0 Issue or pull request that will be included in release 12.9.0 team-extension-platform
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants