Skip to content

Commit 345c459

Browse files
committed
remove dead test
1 parent 749c069 commit 345c459

1 file changed

Lines changed: 0 additions & 53 deletions

File tree

tests/chromiumoxide_integration.rs

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -192,56 +192,3 @@ async fn test_chromiumoxide_browserbase_connection(
192192

193193
Ok(())
194194
}
195-
196-
/// Simpler test that just verifies chromiumoxide can launch locally
197-
#[tokio::test]
198-
#[ignore] // Requires Chrome installed locally
199-
async fn test_chromiumoxide_local() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
200-
use chromiumoxide::browser::BrowserConfig;
201-
202-
// Launch browser locally in headless mode
203-
let (mut browser, mut handler) = Browser::launch(
204-
BrowserConfig::builder()
205-
.window_size(1280, 720)
206-
.build()
207-
.map_err(|e| format!("Failed to build config: {}", e))?,
208-
)
209-
.await
210-
.map_err(|e| format!("Failed to launch browser: {}", e))?;
211-
212-
// Spawn handler
213-
let handle = tokio::spawn(async move {
214-
while let Some(event) = handler.next().await {
215-
if event.is_err() {
216-
break;
217-
}
218-
}
219-
});
220-
221-
// Create page and navigate
222-
let page = browser
223-
.new_page("https://example.com")
224-
.await
225-
.map_err(|e| format!("Failed to create page: {}", e))?;
226-
page.wait_for_navigation()
227-
.await
228-
.map_err(|e| format!("Failed to wait for navigation: {}", e))?;
229-
230-
// Get URL
231-
let url = page
232-
.url()
233-
.await
234-
.map_err(|e| format!("Failed to get URL: {}", e))?
235-
.unwrap_or_default();
236-
println!("Navigated to: {}", url);
237-
assert!(url.contains("example.com"));
238-
239-
// Cleanup
240-
browser
241-
.close()
242-
.await
243-
.map_err(|e| format!("Failed to close browser: {}", e))?;
244-
handle.abort();
245-
246-
Ok(())
247-
}

0 commit comments

Comments
 (0)