SeleniumHQ / selenium-ide

Open Source record and playback test automation for the web.
https://selenium.dev/selenium-ide/
Apache License 2.0
2.84k stars 768 forks source link

jest timeout option not working in selenium side runner ver 4.0.12 #1860

Open NikhilHedau opened 2 months ago

NikhilHedau commented 2 months ago

🐛 Bug Report

--jest-timeout option is not working with selenium side runner ver 4.0.12. The tests are running even when the timeout has occurred. Output file. console-output.txt

I see this behaviour even when some commands are failing . Instead of the test failing the test continues to run. PFA below output.

console.warn Unexpected error occured during command: click-id=customer-email- retrying...

  at CommandNode.handleTransientError (node_modules/@seleniumhq/side-runtime/src/playback-tree/command-node.ts:234:15)
  at node_modules/@seleniumhq/side-runtime/src/playback-tree/command-node.ts:197:18

console.error element click intercepted: Element is not clickable at point (572, 343). Other element would receive the click:

...
(Session info: chrome=128.0.6613.138)

  at CommandNode.handleTransientError (node_modules/@seleniumhq/side-runtime/src/playback-tree/command-node.ts:240:17)
  at node_modules/@seleniumhq/side-runtime/src/playback-tree/command-node.ts:197:18

To Reproduce

selenium-side-runner script.side -c "browserName=chrome" -o ~/Documents/test-data --debug --debug-startup --timeout 30000 --jest-timeout 10000

Expected behavior

The test should fail when the timeout has occurred.

Project file reproducing this issue (highly encouraged)

Side File . luma-mpa.txt

Environment

OS: Mac OS Sonoma 14.5 Selenium IDE Version: 3.17.2 Selenium SIDE Runner Version: 4.0.12 Node version: 20.11.1 Browser: Google Chrome Browser Version: 128.0.6613.138 Chromedriver Version: 128.0.6613.84

NikhilHedau commented 2 months ago

Hi @toddtarsi , Can you please check?