2019-11-02 14:32:58 +00:00
|
|
|
package suites
|
|
|
|
|
|
|
|
import (
|
2021-11-05 13:14:42 +00:00
|
|
|
"github.com/go-rod/rod"
|
2019-11-02 14:32:58 +00:00
|
|
|
"github.com/stretchr/testify/suite"
|
|
|
|
)
|
|
|
|
|
2023-01-25 04:11:05 +00:00
|
|
|
func NewRodSuite(name string) *RodSuite {
|
|
|
|
return &RodSuite{
|
|
|
|
BaseSuite: &BaseSuite{
|
|
|
|
Name: name,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-05 13:14:42 +00:00
|
|
|
// RodSuite is a go-rod suite.
|
|
|
|
type RodSuite struct {
|
2023-01-25 04:11:05 +00:00
|
|
|
*BaseSuite
|
2019-11-02 14:32:58 +00:00
|
|
|
|
2021-11-05 13:14:42 +00:00
|
|
|
*RodSession
|
|
|
|
*rod.Page
|
2019-11-02 14:32:58 +00:00
|
|
|
}
|
|
|
|
|
2023-01-25 04:11:05 +00:00
|
|
|
type BaseSuite struct {
|
|
|
|
suite.Suite
|
|
|
|
|
|
|
|
Name string
|
|
|
|
}
|
|
|
|
|
2021-01-16 10:25:02 +00:00
|
|
|
// CommandSuite is a command line interface suite.
|
|
|
|
type CommandSuite struct {
|
2023-01-25 04:11:05 +00:00
|
|
|
*BaseSuite
|
2021-01-16 10:25:02 +00:00
|
|
|
|
|
|
|
*DockerEnvironment
|
|
|
|
}
|