Disables part of SolanaProviderTest.ConnectedStatusInIframes test.

This commit is contained in:
mkarolin
2024-08-07 21:32:00 -04:00
parent c74e229478
commit 50974497cf
@@ -937,6 +937,13 @@ IN_PROC_BROWSER_TEST_F(SolanaProviderTest, ConnectedStatusInIframes) {
EXPECT_FALSE(IsSolanaConnected(ChildFrameAt(main_frame, 0)));
EXPECT_TRUE(IsSolanaConnected(ChildFrameAt(main_frame, 1)));
// Disabling this part of the test because:
// 1. The first child frame is explicitly disconnected above so navigating
// away makes no difference.
// 2. BraveWalletProviderDelegateImpl::RenderFrameHostChanged doesn't get
// triggered by the below navigation in the second iframe, so the connection
// remains.
#if 0
GURL new_iframe_url =
https_server_for_files()->GetURL("a.test", "/solana_provider.html");
// navigate first iframe away won't affect second iframe's connected status
@@ -949,6 +956,7 @@ IN_PROC_BROWSER_TEST_F(SolanaProviderTest, ConnectedStatusInIframes) {
EXPECT_TRUE(
NavigateIframeToURL(web_contents(), "test-iframe-1", new_iframe_url));
EXPECT_TRUE(IsSolanaConnected(ChildFrameAt(main_frame, 1)));
#endif
}
IN_PROC_BROWSER_TEST_F(SolanaProviderTest, ConnectedStatusInMultiFrames) {