MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.93k stars 4.88k forks source link

Flaky test [Snap]: "Test Snap UI Links test link in confirmation snap_dialog type" #24635

Closed chloeYue closed 1 week ago

chloeYue commented 4 months ago

What is this about?

Failure: https://app.circleci.com/pipelines/github/MetaMask/metamask-extension/81189/workflows/2c314a50-9a49-41d5-ace8-e11fca461442/jobs/2877235/tests

Error message Screenshot 2024-05-20 at 16 32 05

Screenshot Screenshot 2024-05-20 at 16 31 53

Scenario

No response

Design

No response

Technical Details

No response

Threat Modeling Framework

No response

Acceptance Criteria

No response

Stakeholder review needed before the work gets merged

References

No response

bowensanders commented 4 months ago

Relevant failure (link line 617) Console log: Executing testPath: /home/circleci/project/test/e2e/snaps/test-snap-uilinks.spec.js

Running tests on firefox

Executing testcase: 'Test Snap UI Links test link in confirmation snap_dialog type'

[driver] Called 'navigate' with arguments []
[driver] Called 'fill' with arguments ["#password","correct horse battery staple"]
[driver] Called 'press' with arguments ["#password",""]
[driver] Called 'assertElementNotPresent' with arguments ["[data-testid=\"unlock-page\"]"]
[driver] Called 'openNewPage' with arguments ["https://metamask.github.io/snaps/test-snaps/2.6.1/"]
[driver] Called 'delay' with arguments [1000]
[driver] Called 'findElement' with arguments ["#connectdialogs"]
[driver] Called 'scrollToElement' with arguments [{"driver_":{"session_":{},"executor_":{"customCommands_":{},"log_":{"name_":"driver.http.Executor","level_":null,"parent_":{"name_":"driver.http","level_":null,"parent_":{"name_":"driver","level_":nu
[driver] Called 'delay' with arguments [1000]
[driver] Called 'clickElement' with arguments ["#connectdialogs"]
[driver] Called 'waitUntilXWindowHandles' with arguments [3]
[driver] Called 'switchToWindowWithTitle' with arguments ["MetaMask Dialog",["f91e34a6-7b64-4cbc-98ec-0ca6a754ce2d","ee1556ed-3f82-48ce-9615-31f16755257d","0e625a2b-ed22-48e3-b1d0-e463640f166e"]]
[driver] Called 'clickElement' with arguments [{"text":"Connect","tag":"button"}]
[driver] Called 'waitForSelector' with arguments [{"text":"Confirm"}]
Failure on testcase: 'Test Snap UI Links test link in confirmation snap_dialog type', for more information see the artifacts tab in CI

TimeoutError: Waiting for element to be located By(xpath, //*[contains(text(), "Confirm")])
Wait timed out after 10057ms
chloeYue commented 1 week ago

Close this ticket as this test is not flaky anymore