mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-01 13:59:37 +08:00
fix: update step failed in ParseStep
This commit is contained in:
10
step_ui.go
10
step_ui.go
@@ -691,11 +691,11 @@ func (s *StepMobileUIValidation) Type() StepType {
|
||||
}
|
||||
|
||||
func (s *StepMobileUIValidation) Config() *StepConfig {
|
||||
return &StepConfig{
|
||||
StepName: s.StepName,
|
||||
Variables: s.Variables,
|
||||
Validators: s.Validators,
|
||||
}
|
||||
// Get the original StepConfig from embedded StepMobile
|
||||
config := &s.StepMobile.StepConfig
|
||||
// Sync validators to the StepConfig
|
||||
config.Validators = s.Validators
|
||||
return config
|
||||
}
|
||||
|
||||
func (s *StepMobileUIValidation) Run(r *SessionRunner) (*StepResult, error) {
|
||||
|
||||
Reference in New Issue
Block a user