fix: keep compatibility for config ignore_popup

This commit is contained in:
lilong.129
2025-07-21 22:00:48 +08:00
parent fbca5907c9
commit 9c4a945db6
6 changed files with 32 additions and 9 deletions
+4 -3
View File
@@ -798,10 +798,11 @@ func runStepMobileUI(s *SessionRunner, step IStep) (stepResult *StepResult, err
config = s.caseRunner.Config.Get()
}
// automatic handling of pop-up windows on each step finished, default to disabled
// priority: step ignore_popup > config auto_popup_handler > step auto_popup_handler
// priority: config ignore_popup > step ignore_popup > config auto_popup_handler > step auto_popup_handler
shouldHandlePopup := false
if stepIgnorePopup {
if s.ignorePopup(mobileStep.OSType) {
shouldHandlePopup = false
} else if stepIgnorePopup {
// step level config, keep for compatibility
shouldHandlePopup = false
} else if config != nil && config.AutoPopupHandler {