mirror of https://github.com/authelia/authelia.git
39 lines
550 B
Go
39 lines
550 B
Go
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
|
|
}
|