change: remove config ignore_popup

This commit is contained in:
lilong.129
2025-07-10 13:18:26 +08:00
parent 0e80d7726b
commit a353d697e8
3 changed files with 3 additions and 6 deletions

View File

@@ -46,7 +46,6 @@ type TConfig struct {
PluginSetting *PluginConfig `json:"plugin,omitempty" yaml:"plugin,omitempty"` // plugin config
MCPConfigPath string `json:"mcp_config_path,omitempty" yaml:"mcp_config_path,omitempty"`
AntiRisk bool `json:"anti_risk,omitempty" yaml:"anti_risk,omitempty"` // global anti-risk switch
IgnorePopup bool `json:"ignore_popup,omitempty" yaml:"ignore_popup,omitempty"` // ignore popup for all steps, keep for compatibility
AutoPopupHandler bool `json:"auto_popup_handler,omitempty" yaml:"auto_popup_handler,omitempty"` // enable auto popup handler
AIOptions *option.AIServiceOptions `json:"ai_options,omitempty" yaml:"ai_options,omitempty"`
}

View File

@@ -1 +1 @@
v5.0.0-250709
v5.0.0-250710

View File

@@ -798,12 +798,10 @@ 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: testcase config ignore_popup > step ignore_popup > config auto_popup_handler > step auto_popup_handler
// priority: step ignore_popup > config auto_popup_handler > step auto_popup_handler
shouldHandlePopup := false
if config != nil && config.IgnorePopup {
shouldHandlePopup = false
} else if stepIgnorePopup {
if stepIgnorePopup {
// step level config, keep for compatibility
shouldHandlePopup = false
} else if config != nil && config.AutoPopupHandler {