blob: f4a662bc35cbfe9993409499bf6375571e5e835f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
package suites
import (
"github.com/go-rod/rod"
"github.com/stretchr/testify/suite"
)
func NewRodSuite(name string) *RodSuite {
return &RodSuite{
BaseSuite: &BaseSuite{
Name: name,
},
RodSuiteCredentialsProvider: NewRodSuiteCredentials(),
}
}
// RodSuite is a go-rod suite.
type RodSuite struct {
*BaseSuite
*RodSession
*rod.Page
RodSuiteCredentialsProvider
}
type BaseSuite struct {
suite.Suite
Name string
}
// CommandSuite is a command line interface suite.
type CommandSuite struct {
*BaseSuite
*DockerEnvironment
}
|