robotframework/SeleniumLibrary

alert issue in acceptance tests

開放

#1,349 建立於 2019年3月20日

 (1 則留言) (0 個反應) (0 位負責人)Python (714 個分叉)batch import
help wantedpriority: mediumtask

倉庫指標

星標
 (1,252 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

I just withnessed following issue:

Running Acceptance . Keywords . Alerts . Alert Should Not Be Present with custom timeout left a alert open after a test failure and that caused a trickle down effect of quite a lot of tests failing due to following error:

UnexpectedAlertPresentException: Alert Text: None Message: unexpected alert open: {Alert text : Alert after 500ms!} (Session info: chrome=72.0.3626.121) (Driver info: chromedriver=2.46.628411 (3324f4c8be9ff2f70a05a30ebc72ffb013e1a71e),platform=Mac OS X 10.14.3 x86_64)

Maybe the alert tests should have test suite and teardown to open & close the browser to avoid this sort of flakyness ?

貢獻者指南