Commit Graph

798 Commits

Author SHA1 Message Date
Magnus Müller 21609387d5 Update test case to include file_system 2025-06-20 00:07:59 +02:00
Nick Sweeting 3e5f3049c5 add retry for actions that fail due to page navigation mid-action (#2011) 2025-06-19 07:41:41 -07:00
Nick Sweeting 36c88b760c Consolidate sync related code (#2009) 2025-06-19 07:41:28 -07:00
Nick Sweeting 11c7ec7b16 disable live test on ci 2025-06-19 07:31:41 -07:00
Nick Sweeting f463a9383c init and config fixes 2025-06-19 07:20:43 -07:00
Nick Sweeting c36ca35984 improve logging of errors 2025-06-19 06:40:14 -07:00
Nick Sweeting 60f2abd206 add retry for actions that fail due to page navigation mid-action 2025-06-19 04:15:04 -07:00
claude[bot] a3b3281564 fix: resolve test configuration and security issues
- Fix security issue: replace deprecated tempfile.mktemp() with secure NamedTemporaryFile
- Fix test configuration: remove incorrect browser_use.sync.auth.BROWSER_USE_CONFIG_DIR access
- Fix excessive test timeouts: replace 60000 second sleeps with comments

Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
2025-06-19 10:18:59 +00:00
Nick Sweeting f11793915d fix import 2025-06-19 02:47:53 -07:00
Nick Sweeting 912ed24b3f use anyio for test file writes 2025-06-19 02:40:04 -07:00
Yasith Jayawardana e2e11966d3 Merge branch 'main' into typing-improvements 2025-06-18 21:20:47 -04:00
Nick Sweeting 21c3f605a1 move bubus tests out 2025-06-18 10:28:23 -07:00
Nick Sweeting 474476f0ae switch to external bubus lib 2025-06-18 01:41:16 -07:00
Nick Sweeting f35ea5be4d fixes 2025-06-17 22:38:59 -07:00
Nick Sweeting d0ec528802 fixed events 2025-06-17 22:38:59 -07:00
Nick Sweeting aa5e83b44e fix eventbus tests 2025-06-17 14:12:10 -07:00
Nick Sweeting 0b7ada4731 wip 2025-06-17 03:08:03 -07:00
Nick Sweeting 0dd6bc2b50 wip eventbus with EventResults aggregate for all results 2025-06-16 21:06:25 -07:00
yasithdev 8ea4b4c71a centralize playwright/patchwright imports, and update typing/checks to reduce lint errors 2025-06-16 22:57:20 -04:00
Nick Sweeting 552f4d46ed Merge branch 'main' into eventbus 2025-06-16 17:22:17 -07:00
Nick Sweeting e3d21d33a1 fix evaluate_tasks.py errors in CI 2025-06-16 17:20:27 -07:00
Nick Sweeting 04b25553a4 fix issue with actions registered with no parameters 2025-06-16 16:49:47 -07:00
Nick Sweeting f85cdd98bc fix browsersession init in tests 2025-06-16 16:38:44 -07:00
Nick Sweeting 1d31cac481 fix tests 2025-06-16 16:36:06 -07:00
Nick Sweeting ffea60ad79 lint fixes 2025-06-16 15:48:13 -07:00
Nick Sweeting b141958455 Merge branch 'main' into hot-fix/file-upload 2025-06-16 11:25:17 -07:00
claude[bot] c16bfa4f65 Add comprehensive tests for find_file_upload_element_by_index method
This commit adds extensive test coverage for the file upload element finding
functionality in BrowserSession. Tests cover all codepaths including:

- Success cases: finding inputs on current node, descendants, siblings, ancestors  
- Parameter variations: max_height and max_descendant_depth limits
- Edge cases: missing indices, no inputs found, exception handling
- DOM structures: complex nesting, case sensitivity, attribute validation

The 17 test methods ensure robust validation of the enhanced DOM traversal
logic introduced in the file upload improvements.

Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>
2025-06-16 17:48:26 +00:00
Nick Sweeting 66fbb8b282 Merge branch 'main' into eventbus 2025-06-14 01:19:15 -07:00
Nick Sweeting 4fbb199089 fix storage_state setup 2025-06-14 00:11:25 -07:00
Nick Sweeting 7628274790 fix start_browser_session test 2025-06-13 18:04:59 -07:00
Nick Sweeting 749a46854c fix registry test 2025-06-13 18:02:20 -07:00
Nick Sweeting a404158253 centralize LLM mocking for tests into mocks.py 2025-06-13 17:06:31 -07:00
Nick Sweeting 7f49b4aa1d centralize LLM mocking for tests into mocks.py 2025-06-13 17:05:48 -07:00
Nick Sweeting 06488e11ba fix clickaction error handling test 2025-06-11 00:05:58 -07:00
Nick Sweeting d5d341f229 dont raise exception from click action 2025-06-10 23:57:41 -07:00
Nick Sweeting 656a129fba include original LLM status_code in raised exception 2025-06-10 05:33:08 -07:00
Nick Sweeting 1d244960c4 move __del__ monkeypatch to init 2025-06-10 03:47:27 -07:00
Nick Sweeting 1c57d36211 attemp alternative approach where we creaet a dedicated loop for shudown 2025-06-10 03:43:53 -07:00
Nick Sweeting fa6fc98783 silence __del__ event loop closed errors on exit 2025-06-10 03:40:58 -07:00
Nick Sweeting 2631c4c03f also stop playwright at the end of the test 2025-06-10 03:38:45 -07:00
Nick Sweeting e143d079af stop playwright node subprocess when session.kill is called 2025-06-10 03:32:52 -07:00
Nick Sweeting ed2a503f0d fix multiprocessing tests 2025-06-10 03:18:28 -07:00
Nick Sweeting 1e57f0de6c add tests for parallelism 2025-06-10 03:04:04 -07:00
Nick Sweeting a65e43b07e update test best practices 2025-06-10 03:03:16 -07:00
Nick Sweeting 50cb5d858c Update tests/ci/test_registry.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-06-10 05:21:37 -04:00
Nick Sweeting af85850b41 fix registry test fixture scopes 2025-06-10 00:25:41 -07:00
Nick Sweeting 930a7aa4de use self.logger for timing log lines 2025-06-10 00:24:50 -07:00
Nick Sweeting 02bba49ff6 fix older test_browser_session_parameter_issue test 2025-06-09 22:34:34 -07:00
Nick Sweeting 2ebb9db6f1 tweak logging and emoji 2025-06-09 21:18:04 -07:00
Nick Sweeting fe78e45a65 add waits into cloudflare eval test 2025-06-09 20:37:25 -07:00