fix: update step failed in ParseStep

This commit is contained in:
lilong.129
2025-06-18 11:31:28 +08:00
parent d20504f41f
commit 64ed72057f
5 changed files with 10 additions and 22 deletions
+1 -1
View File
@@ -1 +1 @@
v5.0.0-beta-2506171946 v5.0.0-beta-2506181131
+1 -4
View File
@@ -27,10 +27,7 @@ func (s *StepFunction) Type() StepType {
} }
func (s *StepFunction) Config() *StepConfig { func (s *StepFunction) Config() *StepConfig {
return &StepConfig{ return &s.StepConfig
StepName: s.StepName,
Variables: s.Variables,
}
} }
func (s *StepFunction) Run(r *SessionRunner) (*StepResult, error) { func (s *StepFunction) Run(r *SessionRunner) (*StepResult, error) {
+1 -4
View File
@@ -26,10 +26,7 @@ func (s *StepRendezvous) Type() StepType {
} }
func (s *StepRendezvous) Config() *StepConfig { func (s *StepRendezvous) Config() *StepConfig {
return &StepConfig{ return &s.StepConfig
StepName: s.StepName,
Variables: s.Variables,
}
} }
func (s *StepRendezvous) Run(r *SessionRunner) (*StepResult, error) { func (s *StepRendezvous) Run(r *SessionRunner) (*StepResult, error) {
+2 -8
View File
@@ -30,10 +30,7 @@ func (s *StepShell) Type() StepType {
} }
func (s *StepShell) Config() *StepConfig { func (s *StepShell) Config() *StepConfig {
return &StepConfig{ return &s.StepConfig
StepName: s.StepName,
Variables: s.Variables,
}
} }
func (s *StepShell) Run(r *SessionRunner) (*StepResult, error) { func (s *StepShell) Run(r *SessionRunner) (*StepResult, error) {
@@ -63,10 +60,7 @@ func (s *StepShellValidation) Type() StepType {
} }
func (s *StepShellValidation) Config() *StepConfig { func (s *StepShellValidation) Config() *StepConfig {
return &StepConfig{ return &s.StepConfig
StepName: s.StepName,
Variables: s.Variables,
}
} }
func (s *StepShellValidation) Run(r *SessionRunner) (*StepResult, error) { func (s *StepShellValidation) Run(r *SessionRunner) (*StepResult, error) {
+5 -5
View File
@@ -691,11 +691,11 @@ func (s *StepMobileUIValidation) Type() StepType {
} }
func (s *StepMobileUIValidation) Config() *StepConfig { func (s *StepMobileUIValidation) Config() *StepConfig {
return &StepConfig{ // Get the original StepConfig from embedded StepMobile
StepName: s.StepName, config := &s.StepMobile.StepConfig
Variables: s.Variables, // Sync validators to the StepConfig
Validators: s.Validators, config.Validators = s.Validators
} return config
} }
func (s *StepMobileUIValidation) Run(r *SessionRunner) (*StepResult, error) { func (s *StepMobileUIValidation) Run(r *SessionRunner) (*StepResult, error) {