refactor: run step with specified times

This commit is contained in:
debugtalk
2022-12-13 21:30:05 +08:00
parent e5d937c9c3
commit dcc2f651d4
5 changed files with 113 additions and 37 deletions

View File

@@ -872,7 +872,9 @@ func WithScreenShot(fileName ...string) DataOption {
}
func NewDataOptions(options ...DataOption) *DataOptions {
dataOptions := &DataOptions{}
dataOptions := &DataOptions{
Data: make(map[string]interface{}),
}
for _, option := range options {
option(dataOptions)
}