fix: Restore responsive e2e driver option#25932
Conversation
|
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. |
responsive e2e driver option
a5abc63 to
ef39d0d
Compare
|
LGTm ! |
ef39d0d to
f860a3f
Compare
49c50e4 to
6907ab6
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #25932 +/- ##
========================================
Coverage 70.17% 70.17%
========================================
Files 1423 1423
Lines 49844 49844
Branches 13851 13851
========================================
Hits 34975 34975
Misses 14869 14869 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
@micaelae @BZahory I noticed that this option was added in #25044
Could you clarify what this option was used for? I am wondering whether responsive or openDevToolsForTabs is what you want here, or whether this is needed at all.
And the same question foes for the usage in test/e2e/tests/swap-send/swap-send-test-utils.ts (added here: #23703)
Gudahtt
left a comment
There was a problem hiding this comment.
LGTM! Just one non-blocking question (we can adjust this option in those test suites later if we need to)
6907ab6 to
cd9a318
Compare
1146e27 to
f5506c5
Compare
There was a problem hiding this comment.
PR Summary
Reverted the responsive e2e driver option to address issues with Firefox compatibility and ensure correct test execution for responsive UI.
test/e2e/tests/account/metamask-responsive-ui.spec.js: RevertedopenDevToolsForTabstoresponsiveto fix Firefox test execution.test/e2e/tests/bridge/bridge-test-utils.ts: UpdateddriverOptionsto revert toresponsive, ensuring correct semantic purpose.test/e2e/tests/swap-send/swap-send-test-utils.ts: ReverteddriverOptionstoresponsivefor proper responsive UI testing.test/e2e/webdriver/chrome.js: Reintroducedresponsiveoption to force smaller viewport for UI tests.test/e2e/webdriver/index.js: Re-addedresponsiveoption tobuildWebDriverfunction for correct test simulation.
5 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
5715ce8 to
4b72b3c
Compare
1627f5d to
d740d79
Compare
28e1ba1
d740d79 to
28e1ba1
Compare
Builds ready [28e1ba1]
Page Load Metrics (251 ± 241 ms)
Bundle size diffs
|
28e1ba1 to
d8d79fe
Compare
d8d79fe to
253f6c3
Compare
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
253f6c3 to
ef00684
Compare
|
Builds ready [ef00684]
Page Load Metrics (162 ± 190 ms)
Bundle size diffs
|
Builds ready [ef00684]
Page Load Metrics (172 ± 232 ms)
Bundle size diffs
|



Description
In #18347, we changed the driver option
responsivetoopenDevToolsForTabs. This was because we had a new test suite that intended to test browser behaviour related to Service Worker restart on manifest v3 builds. Later changes to chrome's mv3 implementation meant that service worker no longer restarted, and those e2e tests no longer exist (test/e2e/mv3/service-worker-restart.spec.js).However, this change had an unwanted side effect on another test suite (
test/e2e/tests/metamask-responsive-ui.spec.js). As @Gudahtt puts it in a slack message:This PR reverts the option to its original name.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist