fix: update step failed in ParseStep

This commit is contained in:
lilong.129
2025-06-18 11:30:39 +08:00
parent d20504f41f
commit 64ed72057f
5 changed files with 10 additions and 22 deletions

View File

@@ -1 +1 @@
v5.0.0-beta-2506171946
v5.0.0-beta-2506181131

View File

@@ -27,10 +27,7 @@ func (s *StepFunction) Type() StepType {
}
func (s *StepFunction) Config() *StepConfig {
return &StepConfig{
StepName: s.StepName,
Variables: s.Variables,
}
return &s.StepConfig
}
func (s *StepFunction) Run(r *SessionRunner) (*StepResult, error) {

View File

@@ -26,10 +26,7 @@ func (s *StepRendezvous) Type() StepType {
}
func (s *StepRendezvous) Config() *StepConfig {
return &StepConfig{
StepName: s.StepName,
Variables: s.Variables,
}
return &s.StepConfig
}
func (s *StepRendezvous) Run(r *SessionRunner) (*StepResult, error) {

View File

@@ -30,10 +30,7 @@ func (s *StepShell) Type() StepType {
}
func (s *StepShell) Config() *StepConfig {
return &StepConfig{
StepName: s.StepName,
Variables: s.Variables,
}
return &s.StepConfig
}
func (s *StepShell) Run(r *SessionRunner) (*StepResult, error) {
@@ -63,10 +60,7 @@ func (s *StepShellValidation) Type() StepType {
}
func (s *StepShellValidation) Config() *StepConfig {
return &StepConfig{
StepName: s.StepName,
Variables: s.Variables,
}
return &s.StepConfig
}
func (s *StepShellValidation) Run(r *SessionRunner) (*StepResult, error) {

View File

@@ -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) {